in reply to Aliasing Variables
for( $self->{x} ) { # Do stuff to $_ }
Yes, I'd love to see a way to say: my $x= aliasOf($self->{x}); Perl's internals are already up to the task, it just isn't supported in the syntax of the language. /: This may have to do with this being mostly useful as a speed thing and Perl not really being a "speed" kind of language?
Update:
but that still isn't as general as it could be.for my $x ( $self->{x} ) { # Do stuff to $x }
Update2: ...but you already mentioned that.
- tye (but my friends call me "Tye")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re: Aliasing Variables
by John M. Dlugosz (Monsignor) on Jul 22, 2001 at 11:01 UTC | |
by miyagawa (Chaplain) on Jul 22, 2001 at 11:45 UTC | |
by John M. Dlugosz (Monsignor) on Jul 22, 2001 at 22:11 UTC | |
by miyagawa (Chaplain) on Jul 23, 2001 at 09:50 UTC | |
by John M. Dlugosz (Monsignor) on Jul 23, 2001 at 23:49 UTC |