Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 contemplating the Monastery: (13)
As of 2014-09-17 17:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (92 votes), past polls