Using single-quote as a delimiter protects the command from Perl's double-quote interpolation, passing it on to the shell instead:
perl -e "qx(explorer.exe C:\\Path\\To\\my.pdf)"
works
In reply to Re^5: Win32 wperl open Console when system
by sn1987a
in thread Win32 wperl open Console when system
by fdesar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |