open(MAN,"/usr/bin/man ssh |") or die"$!\n"; while(){ print "work!\n" if /ssh/g; }