6
爲什麼Perl 5不能提供它所抱怨的變量的名稱?爲什麼Perl 5在告訴你未初始化值時會告訴你變量的名字?
perl5.8.9 -we 'my $u; print "$u\n"'
Use of uninitialized value in concatenation (.) or string at -e line 1.
爲什麼Perl 5不能提供它所抱怨的變量的名稱?爲什麼Perl 5在告訴你未初始化值時會告訴你變量的名字?
perl5.8.9 -we 'my $u; print "$u\n"'
Use of uninitialized value in concatenation (.) or string at -e line 1.
@ user275455有人不得不有知識,時間和傾向才能做到這一點。對於Perl來說,通過查看實現它的補丁可以看出什麼觸發了警告,這一點很重要。 http://perl5.git.perl.org/perl.git/commit/29489e7c741791873ea464cb7e13d2b5a19577a7 – Schwern 2010-09-04 03:20:00