Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

if variants

by apotheon (Deacon)
on Oct 19, 2004 at 09:28 UTC ( #400446=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($foo == 7)
    {
         $foo++;
    }
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    my $foo;
    ...
         $foo++;
    }
    print($foo);
    
  3. or download this
    #!/usr/bin/perl -w
    use strict;
    my $foo;
    ...
         $foo++;
    }
    print($foo);
    
  4. or download this
    if ($foo == 7)
    {
         $foo++;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://400446]
Approved by Chady
Front-paged by rob_au
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2015-03-02 20:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (58 votes), past polls