This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is a perl script good to do this?

 
Jaideep Kshirsagar
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 354
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic