TIMTOWTDI but a slice is simple and effective.
#!/usr/bin/env perl use strict; use warnings; my ($min, $hr, $day, $mon, $yr) = (localtime())[1..5]; print "$min $hr $day $mon $yr\n";
🦛
In reply to Re: how can I get localtime without mutating any variables
by hippo
in thread how can I get localtime without mutating any variables
by thirtySeven
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |