I'm glad you got it working, but this line haunts me:
This was in a subroutine so $outfile was local. I then tried to use it outside the subroutine so that was the problem. I removed the my and now the above call works.
What that tells me is that you aren't using strict, and that you are now creating variables inside of subroutines that you are accessing outside of the subroutines. A better approach would be to let your subroutine return a value that the calling code uses to initialize $outname
Dave
In reply to Re^2: How do you open a PDF file from a perl script in Windows?
by davido
in thread How do you open a PDF file from a perl script in Windows?
by hmj6jmh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |