good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Indirect Referencingby Aragorn (Curate) |
on Jun 17, 2004 at 20:50 UTC ( [id://367753]=note: print w/replies, xml ) | Need Help?? |
Update: Argh! Nevermind, I misunderstood the question.
If what's within the angle brackets is neither a filehandle nor a simple scalar variable containing a filehandle name, typeglob, or typeglob reference,$infh is a typeglob reference, so it should work. Actually, it does, if the while(<$infh}>){ is replaced by while(<$infh>){. Small change, big results ;-) Arjen
In Section
Seekers of Perl Wisdom
|
|