Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Newbie: query about array assignment

by LanX (Canon)
on Sep 13, 2012 at 13:40 UTC ( #993493=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<104> dp @stuff = "This","That","Other"; 
    {
    ...
    {
        (@stuff = ('This', 'That', 'Other'));
    }
    
  2. or download this
      DB<111> sub list { "This","That","Other" }
     
      DB<112> @stuff = list()
     => ("This", "That", "Other")
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2014-12-21 16:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls