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

Re^2: Why are elements of my array getting deleted?

by chromatic (Archbishop)
on Apr 19, 2012 at 04:06 UTC ( #965845=note: print w/replies, xml ) Need Help??


in reply to Re: Why are elements of my array getting deleted?
in thread Why are elements of my array getting deleted?

Not sure if this will work...

What led you to believe it might? (I think you might say "Because I understand that accessing elements of @_ directly exhibits aliasing behavior." Fortunately, assignment of those elements performs a copy of the value of each element, so the only difference between direct assignment of indexed element and shift is that the latter updates the container—@_— as well.)

Replies are listed 'Best First'.
Re^3: Why are elements of my array getting deleted?
by tangent (Priest) on Apr 19, 2012 at 13:57 UTC
    What led you to believe it might?
    Because, in a similar scenario, this change fixed a mysterious problem I had. I don't have the knowledge to explain why, but it did work.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://965845]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2016-12-03 09:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (54 votes). Check out past polls.