From: Ben Crane <[EMAIL PROTECTED]>
> Is there a way of using perl's amazing
> pattern-matching skills within VB???I find using VB to
> query txt files, etc to be more cumbersome and less
> friendly than perl's...I was wondering whether anyone
> had been able to utilize perl from within VB, and if
> so, how? 
> 
> I'm presuming using a perl dll [actually, can they be
> used in vb?], but that would be quite slow if you
> wanted to use the dll for a variety of pattern
> matching?

See
http://Jenda.Krynicky.cz/#Jenda.Rex

I did not do any benchmarks myself, but I've been told:

        Our program runs 15% faster in our demo project than with Microsoft
        Regexp (the regexp part is just one of many things our program
        does).
        But our primary reason for using Jenda.Rex is that we do not want
        our customers to change their windows installation (installing a new
        vbscript.dll, we needed stuff in version 5.5). 

Of course Jenda.Rex is just regexps. If you want the whole power of 
Perl, you will need the PerlCtrl from ActiveState's PDK.
( http://www.activestate.com/Products/Perl_Dev_Kit/ )
That may be better because with Jenda.Rex you'll have to read the 
file in VB and then pass the whole text to the COM object, which may 
add too much overhead.

I created several COM objects with PerlCtrl and use them from ASPs or 
VB programs and it works just great :-)

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to