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

Re: Using Perl to run Visual Basic code

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
March 26, 2006 03:35
Subject:
Re: Using Perl to run Visual Basic code
Message ID:
20060326113509.14068.6@llama.ing-simmons.net
Dennis P Mulqueeny <Dennis.P.Mulqueeny@wellsfargo.com> writes:
>I have a Perl script running under version 5.8.5 on a sun4-solaris
>system.
>
>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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About