Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Boolean counter?

by eye (Chaplain)
on Dec 07, 2009 at 08:18 UTC ( #811446=note: print w/replies, xml ) Need Help??


in reply to Boolean counter?

One more way...

$toggle = 1 - $toggle;
This lacks elegance since it needs to start at 0 or 1, but it is simple.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://811446]
help
Chatterbox?
[erix]: *chuckle*
[marinersk]: karlgothebier I am glad to see you are still here. Have you decided on retirement or to continue the job hunt?

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2017-05-25 15:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?