in reply to Re^3: How do I test a script that doesn't have a .pl extension
in thread How do I test a script that doesn't have a .pl extension
will do that.require 'foo';
not ok 2 - require foo; # at /source/t/foo.t line 30. # Tried to require 'foo'. # Error: Can't locate foo.pm in @INC (@INC contains: /source/bin +... at (eval 17) line 2. Died at /source/t/foo.t line 30.
|
|---|