Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Perl Humor

by gmpassos (Priest)
on Sep 21, 2002 at 01:23 UTC ( #199684=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      sub atoi {
        my $t;
    ...
        }
      }
      $number = atoi("123");
    
  2. or download this
      $string = sprintf("%f", 123.45);
    
  3. or download this
       if ($string == "$string") { 
       # It is a number
       }
    
  4. or download this
      if ($var =~ /(?=.)M{0,3}(C[MD]|D?C{0,3})(X[CL]|L?X{0,3})(I[XV]|V?I{0
    +,3})/) {
        print "$var contains a number.\b";
      }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2014-09-19 21:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (146 votes), past polls