Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: perl script testing

by pemungkah (Priest)
on Dec 10, 2013 at 23:00 UTC ( [id://1066517]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package MyCode;
    use strict;
    ...
    
    __PACKAGE__->run() unless caller();
    1;
    
  2. or download this
    package Sample;
    use strict;
    ...
    }
    
    1;
    
  3. or download this
    use Test::More tests=>1;
    use Test::Exception;
    ...
    local @ARGV; # now undef
    dies_ok { Sample->run() } 'no args dies as expected';
    like $@, qr/^usage:/, 'got a usage message';
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-25 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found