> -----Original Message-----
> From: [EMAIL PROTECTED]
> Sent: Thu, 30 Aug 2007 16:34:08 +0100
> To: [email protected]
> Subject: Re: marine subroutine
>
> On 30 Aug 2007 at 17:29, Martin Barth wrote:
>
>> On Thu, 30 Aug 2007 15:39:14 +0100
>> Andrew Curry <[EMAIL PROTECTED]> wrote:
>>
>>> That's rubbish,
>>
>> but you get a warning like:
>>
>> main::a() called too early to check prototype at -e line 1.
>>
>> Use Prototypes at the beginning of your file if you want to write the
>> subs at the end.
>
>
> I don't get that either !!!
Because you said "sayhello()" not sayhello.They are different at all.
See 'perldoc perlsub'.
>
> #!/bin/perl
> ### junk.pl ###
> use strict;
> use warnings;
>
> sayhello();
>
>
> sub sayhello {
>
> print "hello\n";
>
> }
>
>
>> perl junk.pl
> hello
>
____________________________________________________________
GET FREE 5GB ONLINE STORAGE - Safely store your documents, photos and music
online!
Visit http://www.crawler.com/storage to find out more!
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/