Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I have been away for the longest time and happened on this comment today.
A bigger issue is using &subname to call subs instead of subname() - that really doesn't do what you think it does. - in this thread Re: What to use instead of global variables So I wondered what the difference was. I wrote the following as a SIMPLE test to see if anything jumped out at me.
When I do a "perl -c myScript.pl" I get the following main::test2() called too early to check prototype at myScript.pl line 10. myScript.pl syntax OK And when I run the script it seems to work with no problems. Other than I get the same warning and in the syntax check before the output. Now I do realise that I could simply remove the use warnings; from my script but I was wondering -
Of all the things I've lost in my life, its my mind I miss the most. In reply to Calling Functions by AcidHawk
|
|