File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Perl and the fly likes is a perl script good to do this? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Perl
Bookmark "is a perl script good to do this?" Watch "is a perl script good to do this?" New topic

is a perl script good to do this?

Jaideep Kshirsagar

Joined: Aug 29, 2007
Posts: 27

I am new to PERL scripting.
I have a requirement where in I have to

1. query the database
2. based on result set, create objects of a JAVA class
3. cache these objects in Hashtable and
4. return the Hashtable.

Can a perl script do this for me?

Abhinav Srivastava
Ranch Hand

Joined: Nov 19, 2002
Posts: 354

You are talking two different languages here - Java and Perl. You can't create a Java object using perl, you can sure call a java program using perl or maybe maybe maybe something more with JNI.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
All of the steps are relatively easy to do in Java. Why would you want to introduce Perl into it?

There are ways of mixing Perl and Java if you're set on doing that, e.g. JPL .
I agree. Here's the link:
subject: is a perl script good to do this?
It's not a secret anymore!