blackjudas has asked for the wisdom of the Perl Monks concerning the following question:
As you can see, I'd prefer to splice the array into the original one, the only solution that I can come up with (only one cup of coffee so far) is to concantenate each element in the internal array and assign it to $_ and splice it back in. How would you do it?for (@array) { if ($_ =~ /CONTENT/) { my @list = &getlist($type, $index) #... gotta find out what to do from here. } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Manipulating Arrays
by Masem (Monsignor) on Apr 03, 2001 at 22:15 UTC |