in reply to Hash to Scalar?

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.

Do you actually need to convert to a scalar? Could references solve your problem (ie: an array of hashes or a hash of hashes)? Check out perlreftut if you're not familiar with references. Ignore me if you are :-)