in reply to Re: Prototype Mismatch Errors
in thread Prototype Mismatch Errors
mavericknik: I completely agree with LanX's advice. Depending on whether you want POSIX::strftime or Date::Format::strftime, you could either:
use Date::Format qw/time2str ctime asctime/; # everything except strf +time
(See the source for the default @EXPORT list.) And from POSIX:
Everything is exported by default (with a handful of exceptions). This is an unfortunate backwards compatibility feature and its use is strongly discouraged. You should either prevent the exporting (by saying use POSIX ();, as usual) and then use fully qualified names (e.g. POSIX::SEEK_END), or give an explicit import list. If you do neither and opt for the default (as in use POSIX;), you will import hundreds and hundreds of symbols into your namespace.
So following this advice from the documentation is something I'd recommend regardless.
Update: Clarified last sentence.
|
|---|