in reply to Trying to re-write some VB-OLE into PERL-OLE
Your question is demonstrating a very keen misunderstanding of Perl. If I correctly understand what you're trying to do, you actually want the following Perl code:
if (my $part = Library::FindPart( $Recipe->{Placements}[0]{PlacementPa +rt}{Part}{Name} ) ) { my $feedertype = $part->Value( "FEEDERWIDTH", 'Default value goes +here' ); print "Feeder type: $feedertype\n"; }
Now, that code assumes you know a WHOLE bunchload of Perl idioms, data structures, object-oriented code, etc. Unless you really want to spend at least 3-6 months immersed deeply in Perl, I would strongly suggest you fix the bugs in your VB app and not use Perl.
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
I shouldn't have to say this, but any code, unless otherwise stated, is untested
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Trying to re-write some VB-OLE into PERL-OLE
by jdporter (Paladin) on Sep 24, 2004 at 00:18 UTC | |
by dragonchild (Archbishop) on Sep 24, 2004 at 00:25 UTC | |
by jdporter (Paladin) on Sep 24, 2004 at 00:56 UTC | |
Re^2: Trying to re-write some VB-OLE into PERL-OLE
by juo (Curate) on Sep 23, 2004 at 14:10 UTC | |
by dragonchild (Archbishop) on Sep 23, 2004 at 14:19 UTC |