Perl Modules: Java's Little Helpers

Wednesday, March 12, 2008 by Mistlee

Can't see any images? -!

Recent Articles

Random Errors In Perl
WThere is a simple mistake I make frequently with random numbers. I'll use Perl to illustrate, but trust me: I can screw this up in just about any language.

Playing with Perl 5.10
While we were all busy getting ready for the holidays, version 5.10 of Perl appeared on CPAN. That surprised me, because I thought the next Perl I'd see would be the dreaded Perl 6.. I don't know when that will be...

Equal Height CSS Columns With Filler Text
If you search for "column alignment" or "css columns", you'll probably eventually end up at In search of the One True Layout at That's...

Random Subroutines In Perl
I'll bet your first question might be "why on earth would I ever want to call subroutines randomly?". Admittedly, it isn't a need that comes up that often, but (for example) it's used right here on this very page that you are...


Perl Modules: Java's Little Helpers

By David A. Utter

Perl programmers who may have to add "Write once, run anywhere" to their knowledge of "There ain't no such thing as a free lunch" can find modules to assist in working with Java.

Not every day in front of the terminal may be spent crunching enormous text files like server logs, or making a server obey its operator's needs via Perl. Sometimes the job requires the diligent Perl professional to venture into uncharged country, namely that of Java development.

Happily, other programmers traveled that path previously, leaving their wisdom in the form of modules on CPAN. TechRepublic contributed a nice list to the cause, and it bears repeated mention here.

Try a Better Way Today. Try WebEx PCNow

The base Java module provides a Perl extension for accessing a Java virtual machine, either locally or remotely. Java::Import allows a Perl script to access a Java class.

Perl may be the choice of someone needing to connect to a database. With the JDBC module, the programmer can connect to a remote database system when he needs to get there with a custom JDBC driver class, the report noted.

For embedding Java code into a Perl script, the Inline::Java module helps with this task. Programmers can drop that Java code in directly, and the module will compile and invoke the code as needed.

Several other modules feature in the report. The right one for the Perl/Java pro may be waiting there right now.

About the Author:
David Utter is a staff writer for WebProNews covering technology and business.

About PerlProNews
PerlProNews is a collection of news and commentary designed to keep you in step with the ever evolving landscape of Perl environments. News and Advice for Perl Professionals

PerlProNews is brought to you by:

-- PerlProNews
is an iEntry, Inc. publication --
iEntry, 2549 Richmond Rd. Lexington KY, 40509
2008 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article

Unsubscribe from PerlProNews.
To unsubscribe from PerlProNews or any other iEntry publication, simply send an email request to:
Database Forum News and Advice for Perl Professionals PerlProNews News Archives About Us Feedback About Article Archive News Downloads WebProWorld Forums iEntry Advertise Contact Jayde