Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Testing Non-module code

by whiteEFunk (Acolyte)
on Mar 16, 2004 at 18:46 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://337084]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-26 01:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found