Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: Calling Functionsby eclpmb (Hermit) |
on Mar 28, 2012 at 08:31 UTC ( [id://962100]=note: print w/replies, xml ) | Need Help?? |
The main thing is that you're using prototypes. Generally prototypes aren't needed, aren't used and can be harmful unless you're very careful.
If you define test2 as
you'll find you're able to call it before it's defined, without getting a warning.
In Section
Seekers of Perl Wisdom
|
|