Now I finally have come around to actually test the VB vs PerlScript
problem.
It was pretty simple I have installed the ActivePerl package and set
scripting 
language to "PerlScript" and started with this simple script which I
loaded into
the scripting engine.

        sub PerlTest {

            my ($Par) = @_;

            return "Perl says : $Par";

        }

Works like a charm.


Thor Egil Leirtro


> -----Original Message-----
> From: Joris Lambrecht [mailto:[EMAIL PROTECTED]]
> Sent: 22. mars 2001 14:00
> To: Thor Egil Leirtrø
> Subject: RE: Howto call Perl form VB?
> 
> 
> sub new ($blah) {
>         return $blah;
> }
> 
> might do the trick
> 
> -----Original Message-----
> From: Thor Egil Leirtrø [mailto:[EMAIL PROTECTED]]
> Sent: donderdag 22 maart 2001 13:35
> To: Joris Lambrecht
> Subject: RE: Howto call Perl form VB?
> 
> 
> 
> OK, here is a simple VBscript accepting one parameter, and 
> returning the
> string "Returning <whatever string you put in>"
> 
> 
> Function SimpleScript(Par)
> 
>       ' Return Par 
>       SimpleScript= "Returning " & Par
> 
> End Function
> 
> 
> Best regards
> Thor Egil Leirtro
> 
> 
> 
> > -----Original Message-----
> > From: Joris Lambrecht [mailto:[EMAIL PROTECTED]]
> > Sent: 22. mars 2001 13:11
> > To: Thor Egil Leirtrø
> > Subject: RE: Howto call Perl form VB?
> > 
> > 
> > If you could mail me a working example in VBscript and/or 
> > Javascript i'll
> > try to make a working perlscript example. Please let it be a 
> > simple example,
> > i'm not very fluent in VBScript/Javascript but converting it 
> > shouldn't be
> > too hard if it's a simple example.
> > 
> > 
> > Regards,
> > 
> > Joris
> > 
> > -----Original Message-----
> > From: Thor Egil Leirtrø [mailto:[EMAIL PROTECTED]]
> > Sent: donderdag 22 maart 2001 12:32
> > To: Joris Lambrecht
> > Subject: RE: Howto call Perl form VB?
> > 
> > 
> > Well, I'm rather new to perlscript; what I actually need is a simple
> > sample script that I can call from VB, and that will return 
> something
> > bck to VB.
> > 
> > I havent been able to do this yet, so it would be of great help.
> > 
> > 
> > Best regards
> > Thor Egil Leirtro
> > 
> > 
> > 
> > > -----Original Message-----
> > > From: Joris Lambrecht [  <mailto:[EMAIL PROTECTED]>
> > mailto:[EMAIL PROTECTED]]
> > > Sent: 22. mars 2001 11:46
> > > To: Thor Egil Leirtrø
> > > Subject: RE: Howto call Perl form VB?
> > >
> > >
> > > I guess that if you've installed activestate perl with the
> > > PerlScript/windows scripting host extensions that should not
> > > be too hard. or
> > > am i missing the point of your question ? I think what you're
> > > looking for is
> > > PerlScript wich let's you code in a VB-like syntax using
> > > perl. Maybe take a
> > > look at  <http://cyber.angels.be> http://cyber.angels.be for some
> > links to resources on
> > > perlscript.
> > >
> > > -----Original Message-----
> > > From: Thor Egil Leirtrø [  <mailto:[EMAIL PROTECTED]>
> > mailto:[EMAIL PROTECTED]]
> > > Sent: donderdag 22 maart 2001 11:26
> > > To: [EMAIL PROTECTED]
> > > Subject: Howto call Perl form VB?
> > >
> > >
> > > We have an VB application that is extensible with 
> scripts, using the
> > >
> > > Microsoft ScriptControl
> > >
> > > This works perfectly with VBScript and Java scripts. The 
> > scripts have
> > >
> > > one string parameter,
> > >
> > > and returns the result in a string.
> > >
> > > 
> > >
> > > Does anybody know how to call Perl scripts in the same manner?
> > >
> > > 
> > >
> > >
> > >
> > >
> > >
> > > Thank you for any help,
> > >
> > > Thor Egil Leirtro
> > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > ActivePerl mailing list
> > > [EMAIL PROTECTED]
> > >  <http://listserv.ActiveState.com/mailman/listinfo/activeperl>
> > http://listserv.ActiveState.com/mailman/listinfo/activeperl
> > > 
> > 
> 
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl

Reply via email to