You're calling localtime in scalar context; strftime wants a list. You can just dispose of the $systime variable and say,
I threw in the strftime format string for what you want.$now_string = strftime '%Y%m%d %H%M', localtime $mtime;
After Compline,
Zaxo
In reply to Re: How to convert mtime using strftime() in perl
by Zaxo
in thread How to convert mtime using strftime() in perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |