Dual-Life / Time-Piece

Object Oriented time objects
Other
15 stars 33 forks source link

missing `use Exporter` #2

Closed gfx closed 11 years ago

gfx commented 11 years ago

It leads a strange error like http://nopaste.64p.org/entry/CBCDD810-16AA-11E3-96F0-3AC23A9B6EE1

rjbs commented 11 years ago

I have tweaked the code instead to use this form:

use Exporter 5.57 'import';

Testing this is a pain! You can't just put it in a normal .t test, because Test::Simple would load Exporter. Even if you emit TAP by hand, the tests are run with blib.pm loaded, which ends up loading Exporter.

Although I could've written a test to clear out the environment and run a subprocess… I decided this could go ahead without a test. :)

Thanks for the report!