Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Two simple code style advice questions

by Anonymous Monk
on Jan 16, 2013 at 18:13 UTC ( #1013630=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Two simple code style advice questions
in thread Two simple code style advice questions

While choroba's example is elegantly expresses what I was getting at, I'd also like to point out other True values, like 3, 5 or, more entertainingly, MAXINT. >;^)


Comment on Re^3: Two simple code style advice questions
Re^4: Two simple code style advice questions
by Anonymous Monk on Jan 16, 2013 at 18:18 UTC

    Well, repeat operator repeats a number of times, its repeat operator, if you want to repeat at most once, force !!boolean

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2014-12-26 18:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (174 votes), past polls