in reply to Re: Strange result for example in Test::Tutorial.
in thread Strange result for example in Test::Tutorial.

replacing the string tz => '0530' with eg. offset => '-0800' indeed solves the problem.

So, what to do best now? Contact the author/maintainer of Test::Tutorial to update the tutorial?

Replies are listed 'Best First'.
Re^3: Strange result for example in Test::Tutorial.
by moot (Chaplain) on Apr 13, 2005 at 03:54 UTC
    It couldn't hurt, although it does seem like an odd test case anyway, since it is dependent on an external (to T::Tutorial) module's API.
      There's nothing more frustrating to me than trying to learn something and having the example not work. Either the provided example should work, or the test should be changed to remove the dependency on an external module.


      Feel the white light, the light within
      Be your own disciple, fan the sparks of will
      For all of us waiting, your kingdom will come

      Update: I wrote an e-mail to Michael, who originally wrote the tutorial, and here's his reply:
      Yes, way down in the footnotes its noted Test::Tutorial is using Date::ICal 1.31 which is horribly out of date. I haven't really touched it in four years. I put up a post on perl-qa to see if anyone wants to take on the job of bringing it up to date.