|We don't bite newbies here... much|
Hash to Scalar?by Massyn (Hermit)
|on Dec 09, 2002 at 12:03 UTC||Need Help??|
Massyn has asked for the wisdom of the Perl Monks concerning the following question:
Is there an easy way to convert a hash to a scalar, and back again? I'm busy writing a mean script to "encode" and "decode" a hash into a scalar variable. The idea is to have a hash table for a number of users, so I need to be able to convert a hash to a scalar and vice versa.
I would like to store and retrieve a hash within a mySQL database via DBI for each user who has a entry in the table. Thus I need to convert the hash to a scalar.
You never know important a backup is until the day you need it.