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

Re^2: how to use two dimensional array?

by hbm (Hermit)
on Jun 14, 2013 at 11:52 UTC ( #1038949=note: print w/replies, xml ) Need Help??


in reply to Re: how to use two dimensional array?
in thread how to use two dimensional array?

One of my favorite tidbits of the language - instead of your for loop:

print "@$_\n" for @array;

Replies are listed 'Best First'.
Re^3: how to use two dimensional array?
by BillKSmith (Prior) on Jun 14, 2013 at 13:02 UTC
    Very clever way of getting the same output, but I do not think it answers the original question. Also note your dependence om the default value of the special variable $LIST_SEPARATOR ($").
    Bill

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2021-09-28 16:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?