in reply to Array element getting deleted
See perlsyn about Foreach-Loops. Basically, $_ acts like an alias and the reading from a file overwrites it.
Also, you should learn to check the success of open and to emit error messages. Also, Data::Dumper::Dumper takes an array reference not an array.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Array element getting deleted
by Bloodnok (Vicar) on Apr 17, 2009 at 11:59 UTC |