Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Toggling between two values

by Aristotle (Chancellor)
on May 05, 2003 at 18:37 UTC ( [id://255703]=note: print w/replies, xml ) Need Help??


in reply to Toggling between two values

#!/usr/bin/perl -w use strict; my $limit = $ARGV[0] || 10; my @cycle = ( "you are", "I am" ); print map "\u$_\n", join(" glad ", reverse map $cycle[$_ % @cycle], 1 +.. $limit) . " glad.";
(It is funny how many pitfalls can await one even in such a simple piece of code.)

Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-03-29 02:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found