Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: convert rows to columns

by choroba (Canon)
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 pondering the Monastery: (14)
As of 2015-07-06 18:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (80 votes), past polls