https://ideone.com/mjkvC9の下記のperlが動かない。
my $t = get();
say DateTime.new( floor( $t / 1e6 ) - 11644473600,
timezone=>9*3600,
formatter=>{ sprintf '%04d-%02d-%02d %02d:%02d:%02d', .year, .month, .day, .hour, .minute, .second } );
下記のエラーが出る。
Unquoted string "year" may clash with future reserved word at 03.pl line 4.
Unquoted string "month" may clash with future reserved word at 03.pl line 4.
Unquoted string "day" may clash with future reserved word at 03.pl line 4.
Unquoted string "hour" may clash with future reserved word at 03.pl line 4.
Unquoted string "minute" may clash with future reserved word at 03.pl line 4.
Unquoted string "second" may clash with future reserved word at 03.pl line 4.
syntax error at 03.pl line 4, near ", ."
03.pl had compilation errors.
済みません。修正箇所を指摘願います。
お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!
関連するカテゴリからQ&Aを探す
おすすめ情報
- ・漫画をレンタルでお得に読める!
- ・人生のプチ美学を教えてください!!
- ・10秒目をつむったら…
- ・あなたの習慣について教えてください!!
- ・牛、豚、鶏、どれか一つ食べられなくなるとしたら?
- ・【大喜利】【投稿~9/18】 おとぎ話『桃太郎』の知られざるエピソード
- ・街中で見かけて「グッときた人」の思い出
- ・「一気に最後まで読んだ」本、教えて下さい!
- ・幼稚園時代「何組」でしたか?
- ・激凹みから立ち直る方法
- ・1つだけ過去を変えられるとしたら?
- ・【あるあるbot連動企画】あるあるbotに投稿したけど採用されなかったあるある募集
- ・【あるあるbot連動企画】フォロワー20万人のアカウントであなたのあるあるを披露してみませんか?
- ・映画のエンドロール観る派?観ない派?
- ・海外旅行から帰ってきたら、まず何を食べる?
- ・誕生日にもらった意外なもの
- ・天使と悪魔選手権
- ・ちょっと先の未来クイズ第2問
- ・【大喜利】【投稿~9/7】 ロボットの住む世界で流行ってる罰ゲームとは?
- ・推しミネラルウォーターはありますか?
- ・都道府県穴埋めゲーム
- ・この人頭いいなと思ったエピソード
- ・準・究極の選択
デイリーランキングこのカテゴリの人気デイリーQ&Aランキング
-
相手側の携帯が電源切れてる時...
-
1コールだけ鳴るけど切れる電話...
-
face book で女性の方からline ...
-
よく05(04)lineって見かけるん...
-
いきなりラインのトークに「新...
-
遠くにいる友達とLINE交換する...
-
lineのワン切り、なぜ?
-
質問です。 先日クラスの女子に...
-
2000年生まれなのですが 00line...
-
LINE追加で「該当するユーザー...
-
半年付き合ってきた彼女をブロ...
-
3ヶ月前に別れた彼とはカカオト...
-
LINEで好きな人が「笑」を全然つ...
-
lineのブロック事情について質...
-
電話番号を教えたら下の名前が...
-
まじで知らない人から深夜に謎...
-
並立と並列の違いってなんですか?
-
ある男子から、ライン追加され...
-
64ビットエクセルでのAPI宣言/P...
-
歯科衛生士の方へ、連絡先を渡...
マンスリーランキングこのカテゴリの人気マンスリーQ&Aランキング
-
相手側の携帯が電源切れてる時...
-
1コールだけ鳴るけど切れる電話...
-
face book で女性の方からline ...
-
よく05(04)lineって見かけるん...
-
Windowsのバッチファイルで正規...
-
いきなりラインのトークに「新...
-
生産ラインの品質を表す直行率...
-
line でおはようございます、の...
-
LINEで好きな人が「笑」を全然つ...
-
法線(normal line)はなぜそう...
-
「一番上、真ん中、下」を示す英語
-
毎月記念日をlineで祝うのって...
-
python flask から fastapiへの...
-
半年付き合ってきた彼女をブロ...
-
2000年生まれなのですが 00line...
-
ある男子から、ライン追加され...
-
遠くにいる友達とLINE交換する...
-
私がlineのアイコンを変更する...
-
ラインナップとラインアップは...
-
会社の先輩とLINE プライベート...
おすすめ情報