martymart has asked for the wisdom of the Perl Monks concerning the following question:
is there an easier way to do this, something likepush @array, "some text"; push @array2, "some text";
although obviously this doesn't work, or I wouldn't be asking here. Apologies in advance if this is a really obvious answer, it just doesn't seem to be covered in my programming perl book (second edition)push (@array,@array2), "some text";
Many Thanks,
Martymart
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pushing onto multiple arrays
by broquaint (Abbot) on Mar 31, 2004 at 11:12 UTC | |
|
Re: pushing onto multiple arrays
by Hena (Friar) on Mar 31, 2004 at 11:15 UTC | |
|
Re: pushing onto multiple arrays
by Hofmator (Curate) on Mar 31, 2004 at 13:05 UTC |