my $output = `dir/b/x *.pl`; #### my $output = `dir/b/x *.pl > c:\dir\dir.txt`;