Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 a soft breeze sighs...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2017-07-22 07:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (337 votes). Check out past polls.