in reply to hashes - treating all keys/ values as one

The easy way:

use Data::Dumper; print Data::Dumper->Dumper(\%hash);

----
Reinvent a rounder wheel.

Note: All code is untested, unless otherwise stated