Do you know where your variables are? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Exactly, buy definition prototyping is predaclaring functions and the allowable arguements for that function.
What you were doing is only defining them and the args at the point you use them, that's only half the picture. Predefining them allows the complier (in this case the interpreter) to make certain assumptions about the calls to the function and error out if they are wrong. One other point that should be made is that there are reasons NOT to prototype in Perl. Do a search on this site and you will come up with several nodes that debate that very point. "Nothing is sure but death and taxes" I say combine the two and its death to all taxes! In reply to Re: Re: problem prototyping a self-recursing function
by Rex(Wrecks)
|
|