Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Operators: arithmetic and otherwise

by Anonymous Monk
on Jun 29, 2001 at 01:14 UTC ( #92471=note: print w/replies, xml ) Need Help??


in reply to Operators: arithmetic and otherwise

"You can also use an and to allow something to execute only if the first criteria evaluates to 0; $isMonday and print "Today is Monday\n";" if the first criteria evaluates to 0, the followed command will not execuate. In this situation, an "or" should be used instead of an "and".
  • Comment on Re: Operators: arithmetic and otherwise

Replies are listed 'Best First'.
Re: Re: Operators: arithmetic and otherwise
by Anonymous Monk on Mar 17, 2003 at 17:04 UTC
    Actually, it looks like it *should* be 'and'. But it should be "only if the first criteria evaluates to 1".

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://92471]
help
Chatterbox?
Discipulus is managing to update/crack his first garmin navigtor: until now just paper maps
Discipulus and discoverd it use sqlite db.. DBI can read it!

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (13)
As of 2017-09-25 14:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (280 votes). Check out past polls.

    Notices?