in reply to Re^2: Pass a hash as parameter to a CGI?
in thread Pass a hash as parameter to a CGI?

I answered my own question. It works, but throws warnings if you have them turned on.

$test_hash_ref = { 'apple' => 'red', 'junk' => 'foo^bar', 'junk2' => undef, 'lime' => 'green' }; Use of uninitialized value in substitution (s///) at ./serialize.pl li +ne 19. Use of uninitialized value in join or string at ./serialize.pl line 19 +. apple|red|junk|foo^1bar|junk2||lime|green $test_hash_ref = { 'apple' => 'red', 'junk' => 'foo^bar', 'lime' => 'green', 'junk2' => '' };

CT

Charles Thomas
Madison, WI