Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Explaining small Code

by hdb (Prior)
on Sep 20, 2013 at 14:25 UTC ( #1055042=note: print w/ replies, xml ) Need Help??

in reply to Explaining small Code

In split, it is explained that split; defaults to split ' ', $_;.

\@numbers is not de-referencing but is creating a reference to the array @numbers. So @matrix will be an array of array references. Without it, the push would push all individual elements of @numbers onto @matrix, effectively creating a long one-dimensional list instead of a matrix.

Comment on Re: Explaining small Code
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2015-10-13 08:26 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (296 votes), past polls