Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 surveying the Monastery: (6)
As of 2014-09-21 05:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (166 votes), past polls