- 89 名前:86 [2007/09/25(火) 17:25:00 ID:XOfpdsF8]
- 試しに、最小限のコードを書いてみたら、
-----test_pm.pm------- package test_pm; use strict; use warnings; our $hoge = "test foo bar"; 1; -----main.pl--------- use strict; use warnings; use test_pm; print $test_pm::test; ------------------- > perl main.pl Name "test_pm::test" used only once: possible typo at main.pl line 5. Use of uninitialized value in print at main.pl line 5. ちゃんと、Use of uninitialized value でて、実行不能でした orz ourでも、myでも同じでした >>86は、CGIなんですが、なんで、ちゃんと動いているんだろ・・・ もうちょっと解析してみます。
|

|