in reply to Re^2: RFC: Is there more to alias?
in thread RFC: Is there more to alias?
I think I've fixed the problem, and I've uploaded a fresh version. See if this helps.
As for your original questions.. I have read your original post several times, and I have honestly no idea what you're trying to accomplish....
for alias my $line (<DATA>) {}This is a syntax error. And "for" already aliases, so what's the deal here? On top of that, why would you need an alias to the temporary var that contains the line anyway?
These work, but again I don't see the point.. why alias $line to the read line? To prevent copying the line? I think perl already optimizes that away.alias my $line = <DATA>; while ( defined( alias my $line = <DATA> ) ) {}
Maybe I'm just missing something, in which case please enlighten me.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: RFC: Is there more to alias?
by Solo (Deacon) on Aug 25, 2004 at 20:23 UTC |
In Section
Meditations