Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: How to save first two columns of an array into another array

by GrandFather (Sage)
on Oct 02, 2012 at 20:11 UTC ( #996905=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996905]
help
Chatterbox?
[Corion]: I guess I have to dump the JSON commands I send and file a bug report with the Chromium devs

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2017-10-17 12:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (230 votes). Check out past polls.

    Notices?