Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Can If-then conditions do ($a = $b = $c) type expressions?

by snafu (Chaplain)
on Apr 25, 2002 at 16:43 UTC ( [id://162026]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -e '
    $a = 5;
    ...
        print "They are not the same\n";
    }
    '
    
  2. or download this
    if ( $a == $b and $a == $c ) {
       print "true\n";
    } else {
       print "not true";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://162026]
Approved by jlk
Front-paged by japh
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found