Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 wandering the Monastery: (4)
As of 2014-09-20 21:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (163 votes), past polls