Do you know where your variables are? | |
PerlMonks |
Re^3: Using currently selected filehandleby particle (Vicar) |
on Jun 23, 2003 at 19:11 UTC ( [id://268288]=note: print w/replies, xml ) | Need Help?? |
there is no typeglob context, but you're on to something. when you assign the result from select to a scalar, it stringifies the IO type that select normally returns. since there's no sigil for an IO type, you usually assign to it through a typeglob. since typeglobs cannot be lexical, you cannot use my to limit their scope. instead, you must use local, which will limit their scope to the current block, and create the typeglob, if it doesn't already exist. hope that helps. ~Particle *accelerates*
In Section
Seekers of Perl Wisdom
|
|