Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Regarding the "Comment" object in Perl's Win32::OLE

by rdfield (Priest)
on Jan 17, 2005 at 10:20 UTC ( #422704=note: print w/ replies, xml ) Need Help??


in reply to Regarding the "Comment" object in Perl's Win32::OLE

You'll probably find it helpful to use the following lines at the top of your code:

use warnings; use strict;
as you appear to be using a number of undeclared functions and your definition of $file1 is definitely incorrect - backslashes and double quotes don't do what you obviously expect.
A good thing for you to do right now would probably have a read of perlman:perldebug have a look at the values in your variables. Another tip would be to check the return values of your external calls - are you sure that $Word is defined before you call methods on it?

Update:I ran the code you supplied and it returns:

Undefined subroutine &main::b called at 422677.pl line 14.
So it looks like you haven't posted the exact code you're trying to run.

rdfield


Comment on Re: Regarding the "Comment" object in Perl's Win32::OLE
Select or Download Code
Re^2: Regarding the "Comment" object in Perl's Win32::OLE
by Errto (Vicar) on Jan 17, 2005 at 16:41 UTC
    I would guess that the functions "b" and "br" indicate that the line
    use CGI qw(:standard);
    is missing from the top of the OP's code. But that's just a guess.
      > But that's just a guess
      
      more like "blindingly obvious", I would think :) The trick is to get the OP to think through the problem - no-one learns from been spoon-fed answers.

      rdfield

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://422704]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2015-07-04 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls