Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 rifling through the Monastery: (9)
As of 2014-12-23 02:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (133 votes), past polls