system("shell.sh"); #### my $results = `shell.sh`; if ($results =~ /Hello World/) { print "tada!"; } #### echo "Hello world";