http://qs321.pair.com?node_id=734531


in reply to Re^2: Perl cheat sheet
in thread Perl cheat sheet

Globals are an important exception here. If you log($!), you may easily have a clobbered $! by the time you use it. log("$!") gets a snapshot of the variable at the time of the call.