in reply to Re: Sed in perl
in thread Sed in perl

Thx!!! yes, i can do this. It would be great to understand why the sed is not working though.

Replies are listed 'Best First'.
Re^3: Sed in perl
by soonix (Chancellor) on Oct 11, 2018 at 02:01 UTC
    I would
    my $cmd = "tac temp.xx | sed -n '/$mod /,/YYY/ p'| grep XXX"; print "executing: '$cmd'\n"; $hier = `$cmd`; print "result: '$hier'\n";
    to actually see what's going on.