if (`rsh ...` =~ /No match/) { die("File not found.\n"); }