How to call a perl function from Access VBA

I want to call a function written in Perl that parses a string and returns the result as another string.

My access code will go through a database and will call that perl function for each record found in the db. The access code will then store the result into another field in the db record.

I need to know if there is a special way to write that function in perl and to declare and call it in my vba program. Thanks
GiteAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rey Obrero (Capricorn1)Commented:
i don't think that is possible, however, you can create a function using VBA in access to do the same..
0
Boyd (HiTechCoach) Trimmell, Microsoft Access MVPDesigner and DeveloperCommented:
If you convert your perl script to be a web service or make a web service wrapper that call the perl script  then you could call it from VBA code.

You may also be able to use the Web Browser control to pass data between the PERL script.

Access has very powerful string manipulating and parsing capabilities. I think it would probably be easier to create VBA code to do the same thing the PERL script does.  

NOTE: You can use regular expressions in VBA code.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:
<<Access has very powerful string manipulating and parsing capabilities. I think it would probably be easier to create VBA code to do the same thing the PERL script does.  

NOTE: You can use regular expressions in VBA code. >>

 That was going to be my suggestion; seems like it woul dbe far simpler to re-do the logic in VBA then trying to call PERL.

 Lot's of VBA string manipulation code floating around already and as you said, regular expressions are available.

 See:

http://www.experts-exchange.com/Programming/Languages/Visual_Basic/A_1336-Using-Regular-Expressions-in-Visual-Basic-for-Applications-and-Visual-Basic-6.html

Jim.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.