in reply to Re^2: Contextual find and replace large config file
in thread Contextual find and replace large config file

Comments in most languages can appear anywhere where insignificant whitespace is possible. Your approach can't transform structures that comment both on the keys and values, as in
{ "name" /* represented as "shortname" in the DB */ : "John Doe" /* full name */,
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^4: Contextual find and replace large config file
by karlgoethebier (Abbot) on Jan 04, 2019 at 14:36 UTC
    “...Your approach...“

    Nobody is perfect.

    «The Crux of the Biscuit is the Apostrophe»

    perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help