my $synonyms; eval { $synonyms=$MSWord->SynonymInfo({Word => $word, LanguageID => $lang +uage})->SynonymList(1); }; if($@) { print "Nope\n"; } else { foreach (@{ $synonyms }) { print $_."\n" }; }
Type "perldoc -f eval" and "perldoc -f die" at a command prompt to see more information about this.
/J
In reply to Re: Problem using Win32::OLE with MS Word
by jplindstrom
in thread Problem using Win32::OLE with MS Word
by adam2005
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |