#/usr/local/bin/perl -n -l
($value, $key) = /(\w+)\s*=>\s*'(.*?)'/;
print "$key => '$value',";
That was pretty much what I did not want to do, I wanted to keep the 'keys' and 'values' in the same order as I had them. BTW this was meant to be a passing thought in the realm of meditation, and I am sorry if I seemed to be whining. And although I wasn't really after wisdom, I ended up getting some from tilly anyway :) | [reply] [d/l] |
I think that would be a good function for a text editor to have. | [reply] |
Most editors have the capability to take Perl functions. I know emacs and vi and crisp all can...
| [reply] |