You can split and grep like this:
and the output isuse Data::Dumper; my @out = grep /FC_DVT/, split("\n", $out); print Dumper( \@out ) . "\n";
UPDATE 'use' line was edded.$VAR1 = [ 'cfg: FC_DVT MEZZI; MEZZI1', 'cfg: FC_DVT' ];
In reply to Re: issue with grep in the output of a command
by pme
in thread issue with grep in the output of a command
by janasec
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |