Maestro815 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Guys, Would just like to ask for your wisdom on what approach can I do to make sed work with qx on a loop. It is working on the first loop but failing on the succeeding loops. Thanks in advance.
foreach (@SetBCs) { my $command = qx(sed -n "/Sets/,/Rules/p" $_); print $command; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: qx + sed not working
by 1nickt (Canon) on Apr 20, 2018 at 12:44 UTC | |
|
Re: qx + sed not working
by haukex (Archbishop) on Apr 20, 2018 at 12:46 UTC | |
|
Re: qx + sed not working
by Anonymous Monk on Apr 20, 2018 at 12:13 UTC | |
by Maestro815 (Initiate) on Apr 20, 2018 at 13:07 UTC | |
by hippo (Archbishop) on Apr 20, 2018 at 13:58 UTC | |
by Your Mother (Archbishop) on Apr 20, 2018 at 14:06 UTC | |
by Anonymous Monk on Apr 20, 2018 at 20:46 UTC | |
by Your Mother (Archbishop) on Apr 20, 2018 at 21:08 UTC | |
by 1nickt (Canon) on Apr 22, 2018 at 15:59 UTC | |
by Your Mother (Archbishop) on Apr 22, 2018 at 17:54 UTC |