Use the list version of system, which is safer anyway:
my @cmd = ($ENV{COMSPEC}, "/c", "start", "soffice.exe", $file); system(@cmd) == 0 or die "Couldn't launch @cmd: $! / $?";
In reply to Re: how to open a file with space in its name
by Corion
in thread how to open a file with space in its name
by arunmep
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |