Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Toggling between two values

by pernod (Chaplain)
on May 05, 2003 at 17:17 UTC ( [id://255669]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! /usr/bin/perl
    use strict;
    ...
       " glad " . $result foreach ( 1..$limit );
    
    print $result, "\n";
    
  2. or download this
    c:/Data $ perl fn.pl 20
    I am glad you are glad I am glad you are glad I am glad you are glad I
    + am glad you are glad I am glad you are glad I am glad you are glad I
    + am glad you are glad I am glad you are glad I am glad you are glad I
    + am glad you are glad I am glad.
    
  3. or download this
    #! /usr/bin/perl
    use strict;
    ...
                   return $oss[ $index = not $index ] : return;
        }
    }
    
  4. or download this
    
    $result =  $head. " er glad " . $result while( my $head = &swap );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://255669]
Approved by particle
Front-paged by broquaint
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-24 05:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found