時刻表示なう。
my ($seconds, $minutes, $hours, $day, $month, $year) = localtime;
$year += 1900;
$month += 1;
print sprintf "%4d/%02d/%02d %02d:%02d:%02dなう\n", $year, $month, $day, $hours, $minutes, $seconds;
実行結果
2016/11/09 11:38:56なう
my ($seconds, $minutes, $hours, $day, $month, $year) = localtime;
$year += 1900;
$month += 1;
print sprintf "%4d/%02d/%02d %02d:%02d:%02dなう\n", $year, $month, $day, $hours, $minutes, $seconds;
実行結果
2016/11/09 11:38:56なう