Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
It's probably a stupid question, but why not use prototypes? I like that I get some argument checking (not a whole lot, but that's actually better most of the time) by declaring named subs (i.e. sub mySubroutine ($$) has two expected scalar args) with args, but I also like to stuff my subs at the bottom of my file, and so perl issues a warning if I don't put the prototype at the beginning of the code. Are you suggesting that to become more Perly, one must abandon naming arguments altogether in subs? Thanks again, all, for the suggestions. --Ray In reply to Re^2: Strictly nested sub warnings
by raybies
|
|