develooper Front page | perl.perl5.porters | Postings from March 2006

Re: Using Perl to run Visual Basic code

Thread Previous | Thread Next
Nick Ing-Simmons
March 26, 2006 03:35
Re: Using Perl to run Visual Basic code
Message ID:
Dennis P Mulqueeny <> writes:
>I have a Perl script running under version 5.8.5 on a sun4-solaris
>I have coded it to process a very small subset of Visual Basic code that
>is stored in an XML document.  I currently use an eval to run the code
>reference (anonymous subroutine).  There are actually 5 separate scripts
>in this XML document.  One of the script fields is:
><SCRIPT>' Data.Value function changed to specify number of characters to
>pad input for Perl where needed
>Dim year
>Dim month
>Dim day
>Dim century

>It takes a long time to run (23 minutes to process 324,834 records) and
>I get the "Out of memory!" error after about 700,000 records.  Is there
>a better way of doing this so as to avoid the eval?

Sounds like a "source filter" would suit your needs nicely.

See Filter::Simple in CPAN

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About