http://www.perlmonks.org?node_id=444734


in reply to Re^2: How-To on Perl one-liners
in thread How-To on Perl one-liners

if I grok Perl one-liners, I don't need shell scripting nearly as much

Indeed, but with oneliners, you still need to know the shell fairly well. I'm not implying you don't, but I'm just trying to make the point. There are many shell gotchas involved when writing oneliners. Most common are quoting and glob expansion (or expansion in general) woes. Also, it's often more natural to use a perl oneliner as part of the pipeline, rather than the entire thing. This requires knowing the shells you're working with. There's really no [reasonably convenient] way of avoiding it. :-)