Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Please explain 'list' assignment.

by friedo (Prior)
on Nov 03, 2006 at 19:10 UTC ( [id://582141]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ($var1, $var2, $var3) = "Hello" x 3;
    
  2. or download this
    my ($var1, $var2, $var3) = map "Hello", 1..3;
    
  3. or download this
    my ($var1, $var2, $var3) = ("Hello") x 3;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-20 00:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found