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

Re: Toggling between two values

by boo_radley (Parson)
on May 05, 2003 at 23:29 UTC ( #255771=note: print w/replies, xml ) Need Help??


in reply to Toggling between two values

untested, not near perl, but sufficiently bored.
my %annoying; $annoying {"I am"}= "you are"; $annoying {"you are"} = "I am"; $key = "I am"; for (1..10) { print $annoying{$key}," glad "; $key= $annoying{$key}; } print ".";

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2023-03-24 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (61 votes). Check out past polls.

    Notices?