Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^3: remove last column of tab-delimited fileby flowdy (Scribe) |
on Jul 22, 2016 at 18:46 UTC ( [id://1168384]=note: print w/replies, xml ) | Need Help?? |
Why don't you try it instead of asking? ;) I would use splice @header_for_table1, -1 without assignment, as splice returns what it has removed from an array. Likewise pop cuts the last element off an array and returns it, but in contrary what you want is all items but the last, don't you? UPDATE: pop() without assignment is the same like splice(@array, -1), yeah.
In Section
Seekers of Perl Wisdom
|
|