Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Tied Variables - why?

by perrin (Chancellor)
on Sep 07, 2002 at 15:20 UTC ( [id://195876]=note: print w/replies, xml ) Need Help??


in reply to Tied Variables - why?

An anecdote:

I had written most of a program to generate a big SQL import script when I realized that I actually needed some data I had stored in hashes to retain its order. I could have changed my code to use an array as well as a hash, but instead I just replaced the hashes with Tie::IxHash and everything just worked, with no other code changes. That was beautiful.

I usually avoid using tied hashes because they are slower than just calling object methods, but in this case it was really handy.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-26 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found