Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Do you know where your variables are?
 
PerlMonks  

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


Comment on Re^3: Spot the bug!
Select or Download Code
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
Node Status?
node history
Node Type: note [id://580851]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2014-04-18 08:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (464 votes), past polls