Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Testing Non-module code

by whiteEFunk (Acolyte)
on Mar 16, 2004 at 18:46 UTC ( #337084=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
         sub foo_plus_one($) { return $_[0]+1 }
    
  2. or download this
         BEGIN { require_ok("('foo.pl')") };
    
  3. or download this
         my $foo = 4;
         is( foo_plus_one($foo), '5', 'method foo_plus_one()' );
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (14)
As of 2014-07-14 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (261 votes), past polls