This may work better:
open CMD, '-|', 'ps', 'efax' or die "Cannot open pipe from ps: $!"; my $stat; while ( <CMD> ) { $stat++ if /firstbo/; } close CMD or warn $! ? "Error closing ps pipe: $!" : "Exit status $? from ps";
In reply to Re: Getting rid of $/ on linux
by jwkrahn
in thread Getting rid of $/ on linux
by kamal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |