wood burning stoves*
The moose likes Perl and the fly likes Perl  Vs  Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Languages » Perl
Bookmark "Perl  Vs  Java" Watch "Perl  Vs  Java" New topic
Author

Perl Vs Java

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1371
Perl covers most of the Java features using simple syntax. How Java is different from Perl except object oriented language feature of java.
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18507
    
  40

kri shan wrote:Perl covers most of the Java features using simple syntax. How Java is different from Perl except object oriented language feature of java.


First of all, I would hardly call any of Perl's syntax "simple". It is probably still my favorite scripting language, but it is *FAR* from having an intuitive syntax.

And BTW, Perl has object orient features. It also has generics and operator overloading too. Admittingly, I have never used any of these features though.

Henry
Aj Deschanel
Ranch Hand

Joined: Oct 20, 2009
Posts: 40
I started with PERL in 1999, I have used it for a short period of time, and it was my first web-scripting language to produce dynamic web-pages. I was excited about PERL, especially because before this I tried C for the same things. I studied PERL a little bit deeper and my finding was that PERL was just perfect to PROCESS big amount of texts, it has a lot of power for this, and of course web is all about texts, or at least it was in 1999, just a great fit for me. I guess Java, 10 years ago was somehow very difficult for producing web-content, Servlet+JSP, not the best tool I would say.

Using PERL I built an application similar to PHPMyAdmin, I suppose it is still working If I would deploy it on my machine, ... just do not wanna get scared about the code style from the times I was learning PERL.

Today I believe PERL is still one of the best for TEXT PROCESSING and JAVA just can not do these things so fast so great as PERL does.
Everybody knows that Java code compiles to Bytecode which is "executed" by JVM, well PERL is somehow similar, it just does it from one shot, the script is compiled (1st phase), and executed (2nd phase), all at once by the perl.sh (perl.exe)... that's what I know (knew). I did not touch PERL for very long time.

Also, It should still be an option for small-average web-applications, today.

It's good to know it, or at least to know how to start with it, and there is not way to say, that PERL would replace Java, or vice versa, they are both doing their jobs very well today.


SCJP 1.6, SCWCD 1.5
jayanth raj
Greenhorn

Joined: Jun 29, 2009
Posts: 4
perl regular expressions are very powerful !!
Aj Deschanel
Ranch Hand

Joined: Oct 20, 2009
Posts: 40
jayanth raj wrote:perl regular expressions are very powerful !!

yes, and this is what makes it very different from other tools.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Perl Vs Java
 
Similar Threads
WA #1.....word association
Perl + JMS ?
Perl and Java
Is there a data structure in Java equivalent to the hash in Perl?
session never expires in javaranch