I have four colleagues, none of whom have Perl experience. The colleagues agree that change is necessary but are of the opinion that Java should be the language of choice (there is more Java in the original system than Perl, although the manufacturer has written a Perl API (= some modules) as well as a Java API).

Although it's not the answer you're looking for but if I had a team with four Java folk, and a system that was already partly implemented in Java, I'd just do it in Java. Not because of technical issues, but because of social ones (more Java skills in house, no need to retrain, etc.)

However - to your original points:

- greatly reduce the spawning of new ksh processes
- ready interface to unix system services
- Open3 to control input and output between existing utility programs

All these apply equally well to Java

- CPAN

A possible win - but only if you can point to the bits of CPAN that will actually help this particular project get implemented more quickly.

- associative arrays
- scoped untyped variables
- flexible choice of procedural versus OO (ksh is only procedural)

Java has hashes. In any case - you need to argue why these things are good for your project.

- perl -d (debugger - no such thing for ksh)

I'd say Java has better tool support (debuggers, IDEs, refactoring, etc.) than Perl.

perl's regexp engine is better than awk/sed's without needing to shell out

Potential win for Perl.

- perl's hashes are more flexible and scopable than formula engine's (Formula Engine provides only a single global hash).

Java has other data structures too. You'll need to argue that Perl's are better for you application.

- perl can communicate more effectively with background processes.

So can Java.


In reply to Re: A Perl vs. Java fight brews by adrianh
in thread A Perl vs. Java fight brews by Moron

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.