![]() |
|
We don't bite newbies here... much | |
PerlMonks |
Hash to Scalar?by Massyn (Hermit) |
on Dec 09, 2002 at 12:03 UTC ( #218497=perlquestion: print w/replies, xml ) | Need Help?? |
Massyn has asked for the wisdom of the Perl Monks concerning the following question: #!/fellow/monks.pl 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. Thanks! #!/massyn.pl You never know important a backup is until the day you need it.
Back to
Seekers of Perl Wisdom
|
|