http://www.perlmonks.org?node_id=996905


in reply to Re: How to save first two columns of an array into another array
in thread How to save first two columns of an array into another array

Or to explore the language just a little more:

my @l; push @l, @$_ for @S;

to show statement modifiers and that push can push multiple elements at a time.

Update: Fix array name inconsistency.

True laziness is hard work
  • Comment on Re^2: How to save first two columns of an array into another array
  • Download Code