thirtySeven has asked for the wisdom of the Perl Monks concerning the following question:
my $min; my $hr; my $day; my $mon; my $yr; ($_,$min,$hr,$day,$mon,$yr,$_,$_,$_) = localtime();
I have been able to figure out equivalent ways to do the above, but have not figured out how to do it without mutating any variables. I would appreciate some insight.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how can I get localtime without mutating any variables
by Fletch (Bishop) on Jan 06, 2021 at 20:26 UTC | |
by thirtySeven (Acolyte) on Jan 06, 2021 at 20:37 UTC | |
by LanX (Saint) on Jan 06, 2021 at 20:45 UTC | |
by Marshall (Canon) on Jan 07, 2021 at 01:05 UTC | |
|
Re: how can I get localtime without mutating any variables
by hippo (Archbishop) on Jan 06, 2021 at 20:28 UTC | |
by thirtySeven (Acolyte) on Jan 06, 2021 at 20:34 UTC | |
by toolic (Bishop) on Jan 06, 2021 at 21:20 UTC | |
|
Re: how can I get localtime without mutating any variables
by kcott (Archbishop) on Jan 06, 2021 at 22:41 UTC |