Java or Perl


 
Thread Tools Search this Thread
Top Forums Programming Java or Perl
# 1  
Old 06-14-2011
Java or Perl

I am new to this unix forum. I know java program and developed a open source software in java also. I have heard about perl. Someone said perl is faster than Java. Shall i develop my software in perl or java? Give me suggestion. Also, i like to know which is best.
# 2  
Old 06-14-2011
There's a whole lot more to a language than 'faster' or 'slower'. How well it works for you depends quite a bit on what you do with it. There'd be tasks that'd be slow in Perl and fast in Java and vice versa; and more importantly, there'd also be things which are very simple in Perl and very difficult in Java and vice versa; that's the main reason people use any programming language -- convenience.

Perl is a versatile language that started as a string-processing language, but is extensible with modules that make it useful for just about anything; people have written games, data miners, and more in it. It's also relatively easy to get these modules, as it comes with CPAN, a program which can download and install Perl modules from a central repository for you. It supports object-oriented programming and complex data structures, albeit in an unconventional way. But string processing remains its greatest strength.

So if you have to load a thousand records from a database, do some complicated data processing on it and put them somewhere else, Perl would be a good language for that. Being built for it, it might even beat Java's speed. If you want to write a graphic editing program, Java might be better suited to that; Perl may be capable of it using modules, but its CPU and memory use wouldn't be the most efficient.

Last edited by Corona688; 06-14-2011 at 03:38 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl : embedding java script with cgi perl script

Hi All, I am aware that html tags can be embedded in cgi script as below.. In the same way is it possible to embed the below javascript in perl cgi script ?? print("<form action="action.htm" method="post" onSubmit="return submitForm(this.Submitbutton)">"); print("<input type = "text"... (1 Reply)
Discussion started by: scriptscript
1 Replies

2. Shell Programming and Scripting

How to run perl script in remote machine from java application?

Hi I am working in a java application. I need to execute a perl script(linux) which is in remote machine in java application from local machine(windows). I need to do this process automatically that is without manual intereption. Now I will explain the process clearly, at present to run the... (1 Reply)
Discussion started by: bassma
1 Replies

3. Shell Programming and Scripting

Perl-cgi with java

hi, I am writing a perl-cgi which will extract data from DB and show on portal (like a report). Now I have one portal ready with Java (war deployed). Can I use same portal which will directly call my perl-cgi script ? (0 Replies)
Discussion started by: Deei
0 Replies

4. Shell Programming and Scripting

Java package restructuring using shell/sed/perl

Hi we are having more than 10k file source code clutterred across different directories. 1. we want to find duplicate file name 2. all java files and having having below content in various folder under /home/raxit/src --------- /*comment etc for few line */ package hello.a.b.c; ... (0 Replies)
Discussion started by: raxitsheth
0 Replies

5. Shell Programming and Scripting

How to execute java program from perl

hello all how can i run the java command that can eccept N numbers of args for example : java -cp .;foo.jar myApp 1 "ww" or java -cp .;foo.jar myApp 1 2 3 "ww" or java -cp .;foo.jar myApp "args1" "args2" "args3" Thanks (1 Reply)
Discussion started by: umen
1 Replies

6. Shell Programming and Scripting

How to invoke a perl script from java program

Hi: I need to invoke a perl script from a java applet program in UNIX operating system.. Can you please suggest me!!! (4 Replies)
Discussion started by: grajesh_955
4 Replies
Login or Register to Ask a Question