Help for this page
my $ff_exe = q{C:\\Program Files\\Mozilla Firefox\\firefox.exe}; my @cmd = ($ff_exe, '--version'); ... map { /\s/ ? qq{"$_"} : $_ } # enclose in double q +uotes if needed @cmd; print $shell_command;