njweatherman has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I am a novice PERL programmer and I came across a software application for windows xp that converts MS Word documents over to PDF. The program developers state that PERL can be used to communicate with the program. The problem is I have very little experience with OOP.
The software company gave an example using PHP:
<?php $oLoader = new COM("easyPDF.Loader.6");
try
{
$oPrinter = $oLoader->LoadObject("easyPDF.Printer.6");
$oPrintJob = $oPrinter->PrintJob;
$oPrintJob->PrintOut ("C:\input.doc", "C:\output.doc.pdf");
print "Success";
}
Did I transform this over correctly?
I don't know. Did it produce the results you were expecting? If not, how did it deviate from your expected results when you executed your code? Were there any error messages produced?
It is good practice to add these to your code because they aid in debugging: