in reply to $! and $@ peculiarities
$@ is just a global variable who's value is set after an eval is executed, and $! is a funny dual-valued variable (both integer and string) who's value is meaningful at the point of return from a Perl system function which has indicated failure, and who's documentation implies that it sets $! on failure. At any other points during code execution, its value is meaningless.
|
|---|