in reply to RFC: Is there more to alias?
for alias my $line (<DATA>) {}
I'd probably never want to alias $_, just a curiosity.
I don't see anything about filehandles in the POD, either, as in
alias my $line = <DATA>; while ( defined( alias my $line = <DATA> ) ) {}
I'm not sure what I'd expect from the first, but the second involves another implicit assignment to $_. Would that work as 'expected'?
Deref is especially cool and I look forward to that very much. ++
--Solo
--
You said you wanted to be around when I made a mistake; well, this could be it, sweetheart.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: RFC: Is there more to alias?
by Solo (Deacon) on Aug 25, 2004 at 16:59 UTC | |
by xmath (Hermit) on Aug 25, 2004 at 18:05 UTC | |
by Solo (Deacon) on Aug 25, 2004 at 20:23 UTC |