in reply to Need advice in for perl use as awk replacement
good reason :) - this is generally my arc since I actually prefer using shell scripts for most simple things.
As tempting as it is, I would not try to use perl like awk. Doing this in a more readable and expanded way will greatly assist you in your efforts. The /x flag will allow you to even break the regex up over multiple lines and with comments. Your future self and certainly others will appreciate this. Check out perlre for this (and more).
You may also want to checkout Regexp::Common. It may have your use case; if not it's still good to study.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Need advice in for perl use as awk replacement
by jdporter (Paladin) on Sep 23, 2020 at 15:48 UTC |