You could use the following slightly skanky trick to appease the prototype that is provided for strftime:
my $timestring = strftime('%c', @{[localtime()]});
which creates a temporary array reference then dereferences it.
In reply to Re: How to use localtime() in another function ( in list context)
by GrandFather
in thread How to use localtime() in another function ( in list context)
by drecaise
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |