Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Help to assign a 2D-Array to another while excluding specific rows.by SuicideJunkie (Vicar) |
on Sep 13, 2011 at 21:09 UTC ( [id://925772]=note: print w/replies, xml ) | Need Help?? |
It sounds like you might want to use grep: which returns "1245" You can chop one element out with a splice:
Entering "2" gives "01345", "0" gives "12345", and so on. Of course, doing so changes the indices of some of the remaining elements, so be careful with this one.
In Section
Seekers of Perl Wisdom
|
|