in reply to local element of my() array????
This demonstrates that your interpretation is correct...
#! perl -slw use strict; my @foo = 1..9; { local $foo[3] = 'modified'; print "@foo"; } print "@foo"; __END__ C:\test>temp 1 2 3 modified 5 6 7 8 9 1 2 3 4 5 6 7 8 9
...now what's the problem:).
It's really quite clever and very useful in a few situations.
Examine what is said, not who speaks.
The 7th Rule of perl club is -- pearl clubs are easily damaged. Use a diamond club instead.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: local element of my() array????
by Anonymous Monk on Feb 19, 2003 at 16:24 UTC |