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:
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?
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.use warnings; use strict;
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:
So it looks like you haven't posted the exact code you're trying to run.Undefined subroutine &main::b called at 422677.pl line 14.
rdfield
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Regarding the "Comment" object in Perl's Win32::OLE
by Errto (Vicar) on Jan 17, 2005 at 16:41 UTC | |
by rdfield (Priest) on Jan 17, 2005 at 16:51 UTC |
In Section
Seekers of Perl Wisdom