Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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};


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 having an uproarious good time at the Monastery: (12)
As of 2016-09-29 17:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (555 votes). Check out past polls.