Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: weird problem with macports perl on apple m1/m2 based system

by perltux (Monk)
on Jun 10, 2023 at 23:15 UTC ( [id://11152758] : note . print w/replies, xml ) Need Help??


in reply to Re: weird problem with macports perl on apple m1/m2 based system
in thread weird problem with macports perl on apple m1/m2 based system

Ok I found why I originally added "use POSIX", it was for the strftime function, therefore I will change that to "use POSIX qw(strftime)" in my application.

Replies are listed 'Best First'.
Re^3: weird problem with macports perl on apple m1/m2 based system
by Anonymous Monk on Jun 11, 2023 at 18:41 UTC

    Off-topic to the original question, but relevant to use POSIX.

    Time::Piece provides equivalent functionality to POSIX::strftime, and has been core since 5.10.0. Read the docs carefully before using, though, because by default it replaces the core gmtime() and localtime() functions with ones that return an object if called in scalar context.