Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Flipper

by Russ (Deacon)
on May 20, 2000 at 06:20 UTC ( [id://13834]=CUFP: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # In the configuration section...
    my @Toggles = ('on', 'off');
    
    # In some loop in the code...
    $Toggles[$flip = !$flip]
    
  2. or download this
    my @BGColors = ('#dddddd', '#ffffff');
    
    ...
        </tr>
      };
    }
    
  3. or download this
    # To cycle through any number of elements...
    my @Cheers = ('hip', 'hip', 'hoo', 'ray');
    ...
    for (1..12){
      print "$Cheers[$flip = ++$flip % 4]\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-18 13:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found