現在の日時から日本語の曜日名をPerlモジュールのTime::Pieceで生成
PerlモジュールのTime::Pieceを使用して、現在の日時から日本語の曜日名を出力しました。
#!/opt/local/bin/perl
use strict;
use warnings;
use utf8;
use Time::Piece;
print "Content-type: text/plan charset=utf-8\n\n";
print Time::Piece::localtime->wdayname(qw/日 月 火 水 木 金 土/)."曜日";
exit;
日曜日
サンプルコードと出力結果です。現在の日時から日本語の曜日名を出力しました。