Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: convert rows to columns

by choroba (Abbot)
on Nov 27, 2012 at 10:31 UTC ( #1005832=note: print w/ replies, xml ) Need Help??


in reply to Re^2: convert rows to columns
in thread convert rows to columns

In recent Perl (since 5.14), you can push to an array reference. It is not autovivified, though; therefore,

perl -e '$x[0] = []; push $x[0], 1'
works, but
perl -e 'push $x[0], 1'
does not.
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re^3: convert rows to columns
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1005832]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (12)
As of 2014-10-23 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (125 votes), past polls