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

Re: Global symbol requires explicit package name

by cdarke (Prior)
on Nov 08, 2007 at 14:08 UTC ( [id://649716]=note: print w/replies, xml ) Need Help??


in reply to Global symbol requires explicit package name

Update B: generally speaking, unless you are doing something 'clever': "a dollar on the left means a dollar on the right".

When subscripting an array or a hash the leading character (sigil) does not indicate the type of the container but the type of the value. The braces {...} tells perl that it is dealing with a hash, the sigil indicates the context of what is inside the braces.

Whoosh! (sound of slices passing over your head)
  • Comment on Re: Global symbol requires explicit package name

Replies are listed 'Best First'.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found