Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: how can I get localtime without mutating any variables

by Fletch (Bishop)
on Jan 06, 2021 at 20:26 UTC ( [id://11126467]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    (undef, $min, $hr, $day, $mon, $year) = localtime();
    ($min, $hr) = (localtime())[1,2];
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-19 21:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found