From: "Tom Phoenix" <[EMAIL PROTECTED]>
> On 6/24/07, Jeni Zundel <[EMAIL PROTECTED]> wrote:
> > My employer doesn't want to use it because it's in perl and he 
> > doesn't think that anyone else in the building knows perl.  So, 
> > I decided to work on my java syntax (recently started doing a bit > > of 
> > java) and use java in order to manipulate the file instead. 

Do you think it would take longer to learn the basics of Perl 
necessary for that script than it took to reimplement the hundred 
lines of well performing Perl as a thousand lines of slow Java?

Visit the boss, show him the two programs printed out (so that he can 
compare the length ... that's I guess about all he can understand), 
tell him how long did each of them take to write and how long does 
each take to process the file and then ask him whether he's really 
sure that it's more efficient to waste time with Java or to teach one 
more guy some Perl.

> > 2.  Does anyone know if the java would be significantly improved if I
> > make use of regex instead of using substring functions?
> 
> Why do you ask this question in a Perl forum? Yes, Perl is great at
> string manipulation; but you have your Perl program, you're happy with
> it, it's your Java code that you're wondering about improving. If you
> ask the Java people, they can give you better answers about improving
> your Java code. And they're especially eager when they hear that Java
> needs help to compete against Perl.

Eager? I'd expect them to forget about trying to make it quicker 
because they know the've failed to compete many times already and 
concentrate on the reasons why Perl should be banned instead.

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to