Help for this page

Select Code to Download


  1. or download this
    
    use warnings;
    ...
    
    # ------ load script with arg - expect ok
    ok( require 'luckynumber.pl', 'script loaded ok');
    
  2. or download this
    
    use strict;
    ...
    main() if! caller();
    
    1;
    
  3. or download this
    $ prove luckynumber.t
    luckynumber....ok
    All tests successful.
    Files=1, Tests=1,  0 wallclock secs ( 0.06 cusr +  0.01 csys =  0.07 C
    +PU)