請解釋爲什麼這些Perl函數被稱爲的方式高於函數的定義確定它們是否運行。爲什麼你可以在聲明sub foo之前調用foo()和&foo,但是你不能調用plain foo?
print "Why does this bare call to foo not run?\n";
foo;
print "When this call to foo() does run?\n";
foo();
print "And this call to &foo also runs?\n";
&foo;
sub foo {
print " print from inside function foo:\n";
}
print "And this bare call to foo below the function definition, does run?\n";
foo;