Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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.


Comment on Re: Boolean counter?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (13)
As of 2015-07-06 16:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (77 votes), past polls