Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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.


Comment on Re: How do you open a PDF file from a perl script in Windows?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018265]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2014-12-28 18:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (182 votes), past polls