Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^3: Spot the bug!

by tlm (Prior)
on Oct 27, 2006 at 00:49 UTC ( #580851=note: print w/replies, xml ) Need Help??

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.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://580851]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2016-10-26 09:44 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (338 votes). Check out past polls.