nick321 has asked for the wisdom of the Perl Monks concerning the following question:

Hi.. I am new to Perl and I need help in in the following.

I want to copy an image file(.jpg) in the directory to a word document. How can I do this. If possible please provide a steps to do this. That would be a good head start.

Replies are listed 'Best First'.
Re: Copy the image file to a word document
by ww (Archbishop) on Aug 27, 2012 at 17:53 UTC
    1. CD to "the directory"
    2. Read .jpg into memory (associated with $var)
    3. Open word doc using appropriate module(s)
    4. insert $var into "word document"
    5. write "word document" with new name (in case your attempt to do these steps has glitches)

    PM is for learning (about) Perl; it is not a code-writing service. Show us what you've tried. If by "steps" you mean you need pseudo-code; show what you've thought up. If you mean code... well, sorry, but you need to show you've made some effort on your own. Post that and tell us how it fails or fails to satisfy.