in reply to Re: Push corrupting data
in thread Push corrupting data

Thanks - that seems to have solved the problem. <PI'm kind of lost as to why a rereferenced dereference ({%{$hash}} over simply $hash) works, but pushing the original reference doesn't - would you mind trying to explain this?

Thanks again for your help .. *smiles*
-- Foxcub
A friend is someone who can see straight through you, yet still enjoy the view. (Anon)

Replies are listed 'Best First'.
Re: Re: Re: Push corrupting data
by robartes (Priest) on Mar 13, 2003 at 09:44 UTC
    As I know very well since yesterday, dereferencing a hashref like this actually makes a copy of it. So when you do {%{$hash}} you create a new hashref that points to a new copy of whatever data $hash pointed to. That's why it works :).

    CU
    Robartes-