Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Spot the bug!

by tlm (Prior)
on Oct 27, 2006 at 00:49 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-23 15:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found