Syntactic Confectionery Delight | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
In the first example you're 'passing a reference to the corresponding typeglob. and this is the best way to pass filehandles to or from subroutines, since it has the optical effect of removing the ambiguity of the typeglob' As for the prototyping question: 'a backslash quoted character signifies that the argument absolutely must start with that character - for example, \@ would require that the function call specify a list as the first argument'.. but then you are specifying a typeglob which is in fact everything.. so you're requiring 'everything' to be the first argument, which is pointless... the quoted lines are from a book... and I hope it helps a bit. Update: fixed some typos He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life. Chady | http://chady.net/ In reply to Re: Passing filehandles to subs.
by Chady
|
|