Q&A

Q1:Reading and writing Excel documents is great. Is there a way to read and write Microsoft Word documents?
A1: Not directly. First, you can use Object Linking and Embedding (OLE) to remotely control a running copy of Microsoft Word to load a document and retrieve the information you need. Of course, this only works on Windows systems with Word installed, and you'll need the OLE::Win32 module. The module documentation has examples of how to do this.

The other approach is to use a common document format between Word and your programs. The most common is Rich Text Format. Microsoft Word can load and save RTF documents and there are Perl modules for reading and writing RTF documents.

Q2:How can I put images in my PDF documents?
A2: The document ...

Get SAMS Teach Yourself Perl in 24 Hours THIRD EDITION now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.