in reply to Re: Deleteing array elements
in thread Deleteing array elements
Once you've got your array set up as described by Corion, use splice
my @a=('a','b','c','d'); splice @a, 2, 1; print join ",", @a;
--
Linux, perl, punk rock, cider: charlieharvey.org.uk.
Linux, perl, punk rock, cider: charlieharvey.org.uk.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Deleteing array elements
by hobbs (Monk) on Jul 23, 2009 at 09:36 UTC |
In Section
Seekers of Perl Wisdom