Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 avoiding work at the Monastery: (8)
As of 2014-07-25 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (170 votes), past polls