$string = `head /bin/ls`; $string =~ /.*linux.*/ and print "Matches.\n";