Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 exploiting the Monastery: (6)
As of 2015-07-04 21:04 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 (60 votes), past polls