Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Hash element exists/delete (= in conditional)

by LanX (Sage)
on Jan 22, 2013 at 10:54 UTC ( #1014621=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     perl -e 'use strict; use warnings; my $one = 1; if( $one = 2 ) { prin
    +t "True\n"; } else { print "False\n"; } '
    Found = in conditional, should be == at -e line 1.
    True
    
  2. or download this
    perl -we '$a=1; print  (($a = 2) ? "True" : "False");'
    Found = in conditional, should be == at -e line 1.
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2021-12-01 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (13 votes). Check out past polls.

    Notices?