prbndr has asked for the wisdom of the Perl Monks concerning the following question:
hi monks,
another rookie question. if i have an array initialized by:
push @array, $someInt, $someString;where the first entry is a number and the second is a string, how do i remove the last entry from every row in the array? that is, how do i remove the string and be left with a one column array containing only the numbers?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: removing elements from an array
by Kenosis (Priest) on Aug 09, 2012 at 16:50 UTC | |
|
Re: removing elements from an array
by hbm (Hermit) on Aug 09, 2012 at 17:46 UTC | |
|
Re: removing elements from an array
by Athanasius (Archbishop) on Aug 09, 2012 at 16:05 UTC | |
|
Re: removing elements from an array
by LanX (Saint) on Aug 10, 2012 at 00:45 UTC | |
|
Re: removing elements from an array
by Anonymous Monk on Aug 09, 2012 at 21:00 UTC |