deja.com

Before You Buy Help  |  Contact Us  |  My Deja  |  Logout   

 Home >> Discussions >> comp . lang . java . programmer
 >>  comp.lang.java.programmer 
DISCUSSIONS SEARCH
  Power Search 
 
 
>> Forum: comp.lang.java.programmer
>> Thread: Perl compared to Java
>> Message 2 of 3
Save this thread

Subject:Re: Perl compared to Java
Date:10/09/2000
Author: Carfield Yim <carfield@programmer.net>

post reply << previous in thread  ·  next in thread >>

shad sluiter wrote:
>
> I'm sure there are plenty of opinions about this one...
>
> I started learning Perl about a year ago to write typical scripts for a
> web site (guest books, chat rooms, search engines, discussion boards).
> I used Perl because my web host uses UNIX and perl was available, but
> have been curious about Java. One would have to live in a cave to not
> hear the Java hype in the media.
>
> Perl has it's nice points such as its text processing abilities that
> can split input strings into nicely managed lists.  I can see how it
> works with the cgi interface of my UNIX web server.  I do wish that the
> Perl syntax was a little more readable.
>
> My experience in Java is very limited, but I'm getting into a project
> to explore the possibilities of XML programming.  Sun seems to think
> that Java and XML are the "Ying and Yang" of cross-platform
> programming.
>
> Does anyone here use Perl AND Java and can list some strengths of
> each?  I assume Perl can perform XML decoding as good as any text
> processing language.  Any opinions on this issue?
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
 
I my opinion, Perl is strength at regex, reporting and have nice co-operation with unix tool like GDBM and shell program like find so it the most useful tool to write admin script and act-ho stuff.
But when your program size getting larger and larger, perl code is really hard to manager and hard to write code in a team. As it don't have good object oriented programming support. Jave is a great OO language that is much better than C++ and perl with OO support. JDK provide much more useful library than perl, and the nice javadoc give you a very easy way to search and understand the library you want. May be java is my first language, but I just think that javadoc is better than perldoc and man page.
JDK provide a really mature internationalization and security support than perl, I feel that perl is hard to process Chinese text; and I still don't notice that there are any security framework in perl.
Sun have provide a very good website (www.javasoft.com) to organize java resource, similar perl have it great website www.perl.com, but I think that www.javasoft.com is better, because you can find nearly everything you want, but www.perl.com don't. (Of course, I know that there are many other website for both perl and java, but in general, I find resource I want easiler in java).
Java is much more superior in GUI development, but you may not care about this; I think that cross-platform is a big issue. Perl is really excellent in unix environment, but when I need to do some work or testing in Win32 environment, I get into a big trouble. Are you sure your code won't be port to other platform?
 
In short, I will use perl to script quick program that won't spend more than half an hour but I will use java to code for large project.

post reply
<< previous in thread  ·  next in thread >>

Unsubscribe from comp.lang.java.programmer
Mail this message to a friend
View original Usenet format

Messages

Message Author Date
Msg 1   shad sluiter  10/07/2000 
» Msg 2 «  Carfield Yim  10/08/2000 
Msg 3   Rob  10/10/2000 

Search Discussions
  For a more detailed search in Discussions go to Power Search
Search only in: comp.lang.java.programmer
All Deja.com
Search for:
Search  discussions

 

Please visit our sponsor
Click now to Register for MyDeja
Explore More:

Upgrade Your IT career
or win $10K with 1 email

Get tomorrow's news
http://www.standard.com

Christian Books & Music
Up to 90% off Retail!!!

Save Big on ELECTRONICS
Shop @ ETRONICS

A search engine that works
www.northernlight.com

Shop with confidence
and save at Circuit City!

Shop Deja.com for
Computing products

Join an email club
at theglobe.com

Copyright © 1995-2000 Deja.com, Inc. All rights reserved.
Trademarks · Terms and Conditions of Use · Site Privacy Statement

Advertise With Us | About Deja.com
Tires.com · Deja e-centives · StateStreetDirect · ELECTRONICS@ETRONICS · TireRack.com · Cost+Pricing@eCOST.com · Search for Jobs! JobOptions · Find your next IT Job here · Domain Registration · Never forget passwords! ·