in reply to Re^2: Spot the bug!
in thread Spot the bug!

Agreed. But what about just using @_ = @_ instead of local @_? Assignment to @_ is what the docs prescribe for breaking the aliasing. Any reason for preferring one approach over the other?

the lowliest monk

Replies are listed 'Best First'.
Re^4: Spot the bug!
by diotalevi (Canon) on Oct 27, 2006 at 05:09 UTC

    I said local $@, not @_. There's no point to localizing @_, that's your input! You'd copy stuff out of it if you needed that behavior.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊