Habe ich geändert (inkl. dem Semikolon am Ende) und erhalte folgende Fehlermeldung:
Quotec:\temp\perl\office2pdf>office2pdf_short.pl
No type library matching "Microsoft Word" found at c:\temp\perl\office2pdf\office2pdf_short.pl line 16
Win32::OLE(0.1707): GetOleTypeLibObject() Not a Win32::OLE::TypeLib object at C:/Perl/lib/Win32/OLE/Const.pm line 49.
Bareword "wdPrintAllDocument" not allowed while "strict subs" in use at c:\temp\perl\office2pdf\office2pdf_short.pl line
128.
Bareword "wdPrintDocumentContent" not allowed while "strict subs" in use at c:\temp\perl\office2pdf\office2pdf_short.pl
line 128.
Bareword "wdPrintAllPages" not allowed while "strict subs" in use at c:\temp\perl\office2pdf\office2pdf_short.pl line 12
8.
Bareword "wdDoNotSaveChanges" not allowed while "strict subs" in use at c:\temp\perl\office2pdf\office2pdf_short.pl line
139.
Execution of c:\temp\perl\office2pdf\office2pdf_short.pl aborted due to compilation errors.