Perlscript asp object syntax problem
am 15.11.2007 15:11:51 von les
I am using a
$obj = $Server->CreateObject("customdll.object") command successfully.
I get the correct output from a call such as
$obj->{something};
but I can't get the correct syntax for a method which in vbscript
works fine as
objAuth.OutputField("message")
When I use my best guess
$strMessage = "$obj->{OutputField}->{'message'}";
$Response->Write("message is: $strMessage ." );
there is no error but the output is just "message is:."
though I am sure there would be a message.
At the head of the page I have
use Data::Dumper;
use Win32::OLE;
use Win32::OLE::Variant; #this gets the dates out of the database
right.
use Time::Local;
and tried
for my $item ($obj){
$Response->Write("Got first, " . Dumper($item) . "
");
}
but the output of that is
Got first, $VAR1 = bless( {}, 'Win32::OLE' );
It would be much appreciated if I could be told the correct syntax.
Les
Re: Perlscript asp object syntax problem
am 15.11.2007 16:57:21 von paduille.4061.mumia.w+nospam
On 11/15/2007 08:11 AM, Les wrote:
> I am using a
>
> $obj = $Server->CreateObject("customdll.object") command successfully.
>
> I get the correct output from a call such as
>
> $obj->{something};
>
> but I can't get the correct syntax for a method which in vbscript
> works fine as
>
> objAuth.OutputField("message")
>
> When I use my best guess
>
> $strMessage = "$obj->{OutputField}->{'message'}";
>
> $Response->Write("message is: $strMessage ." );
>
> there is no error but the output is just "message is:."
>
> though I am sure there would be a message.
> [...]
I have no access to a Windows/IIS/ASP/Perl system for testing, but my
guess is that you have to do this:
$strMessage = $obj->OutputField("message");
Re: Perlscript asp object syntax problem
am 16.11.2007 16:01:29 von les
On 15 Nov, 15:57, "Mumia W."
+nos...@earthlink.net> wrote:
> On 11/15/2007 08:11 AM, Les wrote:
>
>
>
>
>
> > I am using a
>
> > $obj = $Server->CreateObject("customdll.object") command successfully.
>
> > I get the correct output from a call such as
>
> > $obj->{something};
>
> > but I can't get the correct syntax for a method which in vbscript
> > works fine as
>
> > objAuth.OutputField("message")
>
> > When I use my best guess
>
> > $strMessage = "$obj->{OutputField}->{'message'}";
>
> > $Response->Write("message is: $strMessage ." );
>
> > there is no error but the output is just "message is:."
>
> > though I am sure there would be a message.
> > [...]
>
> I have no access to a Windows/IIS/ASP/Perl system for testing, but my
> guess is that you have to do this:
>
> $strMessage = $obj->OutputField("message");- Hide quoted text -
>
> - Show quoted text -
Dear Mumia,
You are so right. I thought I had tried that, but it seems not, and it
works nicely. Thank you so much.