The stupid question is the question not asked | |
PerlMonks |
Re^2: Prototype Mismatch Errorsby haukex (Archbishop) |
on Aug 08, 2018 at 10:43 UTC ( [id://1220075]=note: print w/replies, xml ) | Need Help?? |
mavericknik: I completely agree with LanX's advice. Depending on whether you want POSIX::strftime or Date::Format::strftime, you could either:
(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.
In Section
Seekers of Perl Wisdom
|
|