in reply to How to convert mtime using strftime() in perl

You're calling localtime in scalar context; strftime wants a list. You can just dispose of the $systime variable and say,

$now_string = strftime '%Y%m%d %H%M', localtime $mtime;
I threw in the strftime format string for what you want.

After Compline,
Zaxo