Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^4: GMT to PST format

by Krambambuli (Curate)
on Jun 20, 2010 at 07:58 UTC ( #845602=note: print w/replies, xml ) Need Help??

in reply to Re^3: GMT to PST format
in thread GMT to PST format

Not necessarily - it works as is here, Date::Manip::Date is brought in by Date::Manip.

Replies are listed 'Best First'.
Re^5: GMT to PST format
by ikegami (Pope) on Jun 20, 2010 at 08:08 UTC

    Not necessarily

    I stand by what I said. There's no reason to that undocumented feature, especially since it didn't work.

    it works as is here,

    Apparently not in the version the OP has.

Re^5: GMT to PST format
by SBECK (Friar) on Jun 21, 2010 at 12:56 UTC

    Actually, this is NOT guaranteed to work.

    Date::Manip version 5.xx does not include the Date::Manip::Date module. Date::Manip 6.xx is a complete rewrite which breaks the module into several pieces including Date::Manip::Date for working with dates (and other modules for working with deltas, timezones, etc.). The actual Date::Manip module is just a backwards-compatible wrapper around these modules.

    So, if you say:

       use Date::Manip;
       $obj = new Date::Manip::Date;
    and you have Date::Manip 5.xx installed, this code will fail, exactly as described elsewhere in the thread.

    As suggested elsewhere in the thread, the proper solution IS to include the line:

       use Date::Manip::Date;
    in the code.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://845602]
[hippo]: Those are auto-posted. We just update them.
[LanX]: "you haven't been a monk" ???
[LanX]: oh "yet" .. got it
[Eily]: LanX: sadly I wasn't born a monk
[LanX]: #SoSad #Shame
LanX silently plays Springsteen in the background "♪..♫ ... I'm on fire ..."

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (14)
As of 2017-03-24 14:48 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (304 votes). Check out past polls.