Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: What's so wrong with this (dereferencing)code?

by Anonymous Monk
on Jun 26, 2024 at 18:07 UTC ( [id://11160222]=note: print w/replies, xml ) Need Help??


in reply to Re^2: What's so wrong with this (dereferencing)code?
in thread What's so wrong with this (dereferencing)code?

POSIX docs warn that it imports everything by default, so either give it an import list, or give it an empty import list and fully qualify the functions:
use POSIX 'strftime'; $now = strftime("%a, %e %b %Y %T GMT",gmtime($now)); use POSIX (); $now = POSIX::strftime("%a, %e %b %Y %T GMT",gmtime($now));
Time::Piece docs say to use its version of strftime and strptime "without the overhead of the full POSIX extension".

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11160222]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-09-15 12:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (21 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.