This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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
Author

is a perl script good to do this?

Jaideep Kshirsagar
Greenhorn

Joined: Aug 29, 2007
Posts: 27
Hi,

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?

Rgds,
Jai
Abhinav Srivastava
Ranch Hand

Joined: Nov 19, 2002
Posts: 349

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
Marshal

Joined: Mar 22, 2005
Posts: 42364
    
  64
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 .


Ping & DNS - my free Android networking tools app
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: is a perl script good to do this?