Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 cooling their heels in the Monastery: (5)
As of 2015-04-28 06:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who makes your decisions?







    Results (516 votes), past polls