Re:Useful Perl one-liners (2013)
by berntb on Tuesday November 29, 2016 @01:28PM
(#13065030)
Here are a few quick and dirty I use for handling output of MySQL. (For serious stuff I include real CSV libraries in the one liner to quote correctly etc.)
I have a bunch of aliases for conversions, to generate common SQL that dependend on parameters and so on.
[ Parent
| on HN ]
Re:Useful Perl one-liners (2013)
by pre_action on Tuesday November 29, 2016 @06:40PM
(#13067207)
I wrote the `ysql` Perl application for exactly this problem
It was faster than Googling. :-)
But it would have been better to build off a well tested module as a basis for my set of tools, sigh. I could have used yaml as an intermediary.
A favorite saying is from chemistry -- with a few weeks of hard work in the lab, you can save hours in the library...