Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Boolean counter?

by hdb (Monsignor)
on Mar 04, 2015 at 13:07 UTC ( [id://1118744]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my $toggle = create_toggle;
    
    print $toggle->()."\n" for 1..10;
    
  2. or download this
    use strict;
    use warnings;
    ...
    my $toggle = new Toggler;
    
    print $toggle->()."\n" for 1..10;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-23 11:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found