While I like this, I think it is more obfuscated than I'd like to see in serious code. I'd even prefer 1+chomp to [chomp]. Even so, it's an unexpected use of grep and I'd probably avoid it.
-sauoq "My two cents aren't worth a dime.";
In reply to Re^2: Building a chomped hash from a file
by sauoq
in thread Building a chomped hash from a file
by LucaPette
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |