Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 scrutinizing the Monastery: (8)
As of 2015-08-01 01:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls