Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 chilling in the Monastery: (12)
As of 2014-09-02 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (29 votes), past polls