Concise is nice; relevant info is better. The Guidance here is to boil your problematic code down to a minimum (preferably not more than 10 -15 lines) that demonstrates the problem.

Your latest code -- the non-concise form -- gives me an error message; if the same holds true for you, yyou should include that (and any warnings) verbatim, in your post to make it easier for us to help.

That said, here's the way my attempt to run your new code went:

Directory of D:\_wo_sch # Establishing existance of the file with whi +ch I tested: 06/28/2013 01:16 PM 56,320 ZBA7-8-13agenda D:\_wo_sch>D:\_Perl_\PMonks\1042932.pl D:\_wo_sch\ZBA7-8-13agenda.doc Undefined subroutine &main::abs_path called at D:\_Perl_\PMonks\104293 +2.pl line 14.

So, in a perhaps excessively cursory manner (I'm running out of daylight here for outdoor tasks to be done in the coolth of the evening), I hunted about for a clue about that. Didn't find it (per se), but did find a couple resources which may help you: Re: Using OLE to view given Paragraph in MS Word Document (in Using OLE to view given Paragraph in MS Word Document) and Win32::OLE.

And that leads to another tip. Super Search and Tia Google ( site: www.perlmonks.com <search term(s)> ) can be an source of solace, education and perhaps even solutions and should be resources to which the puzzled resort, early.

And, of course, buried deep (...DEEP!) in perldoc Win32::OLE you'll find another clue.


If you didn't program your executable by toggling in binary, it wasn't really programming!


In reply to Re^2: Style problem with Word/OLE by ww
in thread Style problem with Word/OLE by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.