sub func { eval { die "bar\n" }; print(@_); } eval { die "foo\n" }; func($@); # Prints "bar" eval { die "foo\n" }; func("$@"); # Prints "foo"