I'm aware of the fact that $@ is a global variable, still I can't figure out why I need to localize it before using eval:
例えば:
eval { SOME_FUNC_THAT_MAY_DIE(); };
if ($@) {
print "An error occured!\n";
}
私が考えることができる唯一のことは、いくつかのシグナルハンドラーがdie私が読み込もうとすると同時に呼び出す場合$@、ここで何が欠けているのでしょうか?