in reply to Re^2: What's "Better" DateTime or localtime?
in thread What's "Better" DateTime or localtime?
So since it uses "localtime" does that mean when you include the Module, that it actually modifies what localtime will output?
By default, yes, it exports and overrides localtime. If you don't want to do that, you can import nothing:
If I do want to override localtime, I will usually explicitly import it:use Time::Piece qw();
use Time::Piece qw(localtime);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: What's "Better" DateTime or localtime?
by mmartin (Monk) on Jul 11, 2013 at 19:04 UTC | |
by jeffa (Bishop) on Jul 11, 2013 at 22:00 UTC | |
|
Re^4: What's "Better" DateTime or localtime?
by mmartin (Monk) on Jul 11, 2013 at 18:49 UTC |