juo has asked for the wisdom of the Perl Monks concerning the following question:
In VB the following code works fine but I cannot get it converted to Perl#! perl -w use strict; use FileHandle; use Win32::OLE; my $Class = "ValorLepComApi.T5KAEFactory"; eval {$LEP = Win32::OLE->GetActiveObject($Class)}; die "LEP not installed" if $@;
The above simple code will get all the values out of the object PLACEMENT.PlacementPart.Refdes but I am not able to get this written in Perl. I looked all over the internet but could not find any example. Only examples on how to excecute things like in Excel but not query objects values. Any good books on general Object orientated programming in Perl for dummies.For each PLACEMENT in Recipe.Placements MsgBox PLACEMENT.PlacementPart.Refdes Next
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Query an object in Perl using Win32::OLE
by Solo (Deacon) on May 25, 2004 at 13:43 UTC | |
by juo (Curate) on May 25, 2004 at 13:51 UTC | |
Re: Query an object in Perl using Win32::OLE
by diotalevi (Canon) on May 25, 2004 at 12:57 UTC |