nofernandes has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
Does someone knows how can i declare a function signature at the start of the code!? Like is done in C or Java??
Example:
If i had this funcion:
sub Hello{ my($text)=@_; print $text; }
How can i show at the beggining of the file that this function exists without comments of course..
Something like this:
sub Hello($text); $a="Hello World"; Hello($a); sub Hello{ my($text)=@_; print $text; }
Does anyone knows? Is it possible?
Thanks...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Functions Signatures
by Abigail-II (Bishop) on Jul 17, 2003 at 12:10 UTC | |
by crouchingpenguin (Priest) on Jul 17, 2003 at 22:29 UTC | |
by nofernandes (Beadle) on Jul 17, 2003 at 12:15 UTC | |
by Abigail-II (Bishop) on Jul 17, 2003 at 12:24 UTC | |
by nofernandes (Beadle) on Jul 17, 2003 at 13:33 UTC | |
by Abigail-II (Bishop) on Jul 17, 2003 at 14:26 UTC | |
Re: Functions Signatures
by broquaint (Abbot) on Jul 17, 2003 at 12:14 UTC | |
Re: Functions Signatures
by Nkuvu (Priest) on Jul 17, 2003 at 15:39 UTC | |
by blue_cowdawg (Monsignor) on Jul 17, 2003 at 16:24 UTC | |
by Nkuvu (Priest) on Jul 17, 2003 at 18:03 UTC | |
by dragonchild (Archbishop) on Jul 17, 2003 at 15:42 UTC |
Back to
Seekers of Perl Wisdom