Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Special literals taken literally

by larryl (Scribe)
on Apr 14, 2006 at 16:42 UTC ( #543393=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use constant FOO => 'my hash key';
    
    my %hash = ('my hash key' => 42);
    
    print "Wahoo!\n" if exists $hash{FOO};
    
  2. or download this
    print "Wahoo!\n" if exists $hash{+FOO};
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2016-09-26 20:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (491 votes). Check out past polls.