in reply to Re: Playing with non-localized $_ in nested loops.
in thread Playing with non-localized $_ in nested loops.
I've often wished that $. could be %. instead. That way, $.{FH} could refer to <FH>, and $.{DATA} could refer to <DATA>. But this all breaks down when you start talking about lexical scalar filehandles ( <$fh> ), because how would you write that? $.{\$fh}? ...it starts looking a little ackward.
I've also often wished that it would actually "do" something when you assign a number to $. But of course this is asking way too much of the buffered IO subsystem, and when that sort of behavior is desired, it's almost always easier to just use Tie::File.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Playing with non-localized $_ in nested loops.
by QM (Parson) on Aug 23, 2004 at 21:49 UTC | |
by BrowserUk (Patriarch) on Aug 23, 2004 at 22:20 UTC | |
by QM (Parson) on Aug 23, 2004 at 23:37 UTC |