Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: How do you open a PDF file from a perl script in Windows?

by NetWallah (Abbot)
on Feb 12, 2013 at 00:05 UTC ( #1018265=note: print w/replies, xml ) Need Help??


in reply to How do you open a PDF file from a perl script in Windows?

If the ".pdf" suffix is associated with Adobe, you can simply pass the file name to "system", and it will do the right thing. This works for me (Windows7):
perl -e "system q|myfile.pdf|"

             Most people believe that if it ain't broke, don't fix it.
        Engineers believe that if it ain't broke, it doesn't have enough features yet.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018265]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2017-05-23 05:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?