I want to have pure perl equivalent of following:

my $out = `my_utility | grep manish`;

which will give me the lines containing manish in the output
of my_utility in variable $out.

-----------------------------
my $out = doMyUtility();
# I dont know how to now grep on $out and process it the matched lines
#independently.

doMyUtility {
        $out = `my_utitlitu`;
        if (0 != $?) {
                exit 1;
        }
        return $out;
}

------------------------------------------
Any ideas?
Thanks,
Manish

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to