my @pairs = (); while ( my ($key,$value) = each %hash) { push @pairs, $key . ' => ' . $value; } print join(', ', @pairs);
In reply to Re^2: Transform hash elements into a string
by FloydATC
in thread Transform hash elements into a string
by perlpal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |