Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Newbie: query about array assignment

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


in reply to Newbie: query about array assignment

You can use B::Deparse (if reading the docum-entation is not enough) to see what perl thinks your code means:

perl -MO=Deparse -e '@stuff = "This","That","Other";' @stuff = 'This', '???', '???';
The question marks mean the constants were optimized away since they were used in a void context (as warnings would have told you).
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re: Newbie: query about array assignment
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://993494]
help
Chatterbox?
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: (14)
As of 2015-07-02 12:37 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 (36 votes), past polls