XP is just a number | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Really quick question. When passing around filehandles between subs, what is the difference between:
and a very slight change: As you can see, in the first example it seems that I have passed a glob reference to the sub, while in the second example I have simply passed the glob. Both work exactly the same, yet I have seen both - what is the difference (is one advantageous over the other)? Also, what is the reason that if I protoype one() like this: it doesn't work, but does? I would think that using \* would just require a glob reference - where am I wrong? Thanks for the help - these glob things are very new to me! r. j o s e p h "Violence is a last resort of the incompetent" - Salvor Hardin, Foundation by Issac Asimov In reply to Passing filehandles to subs. by r.joseph
|
|