This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Perl Vs Java

 
kri shan
Ranch Hand
Posts: 1462
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 20998
76
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
jayanth raj
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
perl regular expressions are very powerful !!
 
Aj Deschanel
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jayanth raj wrote:perl regular expressions are very powerful !!

yes, and this is what makes it very different from other tools.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic