Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
送信ボタンをクリックした後、エラーが発生します:
Bareword "params" not allowed while "strict subs" in use at /var/www/path/get.pl line 71
71行目:
my @names = params;
私はuse strict;ほぼトップにいます。
use strict;
直し方?
注:古いサーバーで動作します。すべてのファイルを新しいサーバーに移動しています。どこがうまくいかなかったのかわかりませんか?
paramsほとんどの場合、別のモジュールからインポートされるはずのサブルーチンの名前です(スタイルに基づいており、Perlではサブルーチンとしても実装されている定数である可能性があります)。
params
コードの残りの部分で両方を検索sub paramsしmy.*params、古いサーバーで正規表現を実行し、それらが新しいサーバーに存在することを宣言しているファイルがあることを確認します。
sub params
my.*params