String quoting utility

1 · Shane Mulligan · Dec. 31, 2016, 4 p.m.
premise This perl script enables you to do code generation and intelligent ‘quoting’ and ‘unquoting’. examples While coding, it might be necessary to take a chunk of code and turn it into a string input 1 2 3 4 5 getopts("d:Jufnbthl", \%options); if (defined $options{d}) { $delim = $options{d}; } pipe the input into the q script 1 cat | q "getopts(\"d:Jufnbthl\", \\%options);\n\nif (defined $options{d}) {\n $delim= $options{d};\n}" cmd script for bash code generation Basic version, withou...