Perlについての質問箱 28箱目
■ このスレッドは過去ログ倉庫に格納されています
0425デフォルトの名無しさん
2006/11/19(日) 18:36:07宣言しているつもりなのですが、エラーになってしまいます。
何がいけないのでしょうか?
[エラー内容]
Global symbol "$FOO" requires explicit package name at test.pl line 11.
Execution of test.pl aborted due to compilation errors.
[test.pl]
#!/usr/bin/perl
use strict;
use warnings;
require "config.pl";
&main();
sub main {
print($FOO);
}
[config.pl]
my $FOO = "aaaaa";
1;
■ このスレッドは過去ログ倉庫に格納されています