Re: marine subroutine
- From: dermot@xxxxxxxxxxxxxxxx (Beginner)
- Date: Thu, 30 Aug 2007 16:34:08 +0100
On 30 Aug 2007 at 17:29, Martin Barth wrote:
On Thu, 30 Aug 2007 15:39:14 +0100
Andrew Curry <andrew.curry@xxxxxxxxxxxx> 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 !!!
#!/bin/perl
### junk.pl ###
use strict;
use warnings;
sayhello();
sub sayhello {
print "hello\n";
}
perl junk.plhello
.
- Follow-Ups:
- Re: marine subroutine
- From: Martin Barth
- Re: marine subroutine
- From: Digger
- Re: marine subroutine
- References:
- RE: marine subroutine
- From: Andrew Curry
- Re: marine subroutine
- From: Martin Barth
- RE: marine subroutine
- Prev by Date: printing long strings
- Next by Date: Re: marine subroutine
- Previous by thread: Re: marine subroutine
- Next by thread: Re: marine subroutine
- Index(es):
Relevant Pages
|
|