- or download this
#This is an excerpt from the automatically generated module template a
+fter running % h2xs -A -X -n Integer::Doubler
package Integer::Doubler;
...
return 2 * shift; # I declared this sub
}
1;
- or download this
#Here is test file generated and what I added to it (Only Last Line):
...
# its man page ( perldoc Test::More ) for help writing this test scrip
+t.
print "2 * 2 =", doubler(2); #<------here, line 16
- or download this
"undefined subroutine &main::doubler called at t/Integer-Doubler.t lin
+e 16"
"#Looks like your test exited with 255 just after 1"
...
Failed 1/1 test scripts. 0/1 subtests failed.
Files=1, Tests=1, 0 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 C
+PU)
- or download this
Skip blib\lib\Integer\Doubler.pm (unchanged)
C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(
+0, 'blib\lib', 'blib\arch')" t/*.t
...
All tests successful.
Files=1, Tests=1, 0 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 C
+PU)
- or download this