GeeCON Prague 2014*
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
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: 42046
    
  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
 
GeeCON Prague 2014
 
subject: is a perl script good to do this?