エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Perlの「Bareword "%s" not allowed while "strict subs" in use~」というエラーについて
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Perlの「Bareword "%s" not allowed while "strict subs" in use~」というエラーについて
Perlの「Bareword "%s" not allowed while "strict subs" in use~」というエラーについて紹介します。 ... Perlの「Bareword "%s" not allowed while "strict subs" in use~」というエラーについて紹介します。 1.はじめに 下記のようなコードがあります。 #!/usr/bin/perl use strict; my $data; $data->{foo-1} = "bar"; このコードを実行したところ次のエラーが出力されました。 Bareword "foo" not allowed while "strict subs" in use at test.pl line 5. このエラーについて、perldoc.jpのエラー一覧には次のように記されていますが、書かれている意味が分かりません。 "strict subs" が有効の場合、裸の単語はサブルーチンの識別子、 中かっこの中、シンボル "=>" の左側でのみ許されます。 おそらくサブルーチン