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

Re: variable name

by sh1tn (Priest)
on Jan 06, 2008 at 06:20 UTC ( #660636=note: print w/ replies, xml ) Need Help??


in reply to variable name

I got the asnwer from brian_d_foy's Mastering Perl book.

# my mistake not to define the type of the variable # not lexical, but in main package $main::var_for_this = q{}; print *var_for_this{NAME};



Comment on Re: variable name
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://660636]
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: (6)
As of 2015-08-01 00:45 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 (285 votes), past polls