Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2016-09-29 10:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (551 votes). Check out past polls.