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);
In reply to Re^3: What's "Better" DateTime or localtime?
by runrig
in thread What's "Better" DateTime or localtime?
by mmartin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |