Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
i need to splice / remove the part below.$VAR1 = [ [ 'IMG0001', [ { 'y' => 0, 'filename' => 'new value', 'x' => 0 }, { 'y' => 10, 'filename' => 'cel.jpg', 'x' => 10 } ] ], [ 'IMG0002', [ { 'y' => 0, 'filename' => 'batman.jpg', 'x' => 0 }, { 'y' => 10, 'filename' => 'robin.jpg', 'x' => 10 } ] ] ];
i have tried using splice but it says that i cannot use splice on an array slice. help!{ 'y' => 10, 'filename' => 'robin.jpg', 'x' => 10 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array of Array or Hashes Splice
by JavaFan (Canon) on May 11, 2009 at 07:28 UTC | |
|
Re: Array of Array or Hashes Splice
by Anonymous Monk on May 11, 2009 at 07:33 UTC | |
|
Re: Array of Array or Hashes Splice
by leslie (Pilgrim) on May 11, 2009 at 14:15 UTC |