in reply to how to open a file with space in its name

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: $! / $?";

Replies are listed 'Best First'.
Re^2: how to open a file with space in its name
by bart (Canon) on Jan 06, 2006 at 01:19 UTC
    Until very recently, perl on Win32 allegedly simply turned the system LIST into the system STRING version, without adding quotes. In other words, it still wouldn't have worked.

    I'm not sure when the backward incompatible change was introduced.

Re^2: how to open a file with space in its name
by arunmep (Beadle) on Jan 05, 2006 at 08:31 UTC
    it was working correctly thank you very much