I spend very little of my time displaying native Perl data types. When I do need to do it, I usually want to do it with Data::Dumper. When I don't want to do it that way, I generally have some target output format which is generally not going to fit your simple display above. Which I could write already as:
In fact even if your desired feature was added, I would deliberately never use it simply because looking up the key-word would be more energy than using the existing native flexibility to solve this problem simply and naturally.join "\n", map "$_=$ENV{$_}", sort keys %ENV;
Plus the fact that this join interface bears no relationship to the usual join strikes me as a design decision that can do nothing but lead to grief later.
In reply to Re (tilly) 1: join should polymorph on hashes
by tilly
in thread join should polymorph on hashes
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |