A
atbusbook
Disclamer i use perl to make the point clearer i'm not saying that perl
is the perfict languige but perl is just a languige thats populer and
im lerning it
Java is staticly typed and slower than perl and espeshaly consitering
perl has to parse Sourse Code Most of the time. it has all the cons of
a scripting languige with none of its pros wich is Loose Dinamic
Typeing. lets compare some perl code to some java.
Hello World
Perl
print "hello world\n";
Java
class hello{
public static void main(){
System.out.println("hello world");
}
}
Parot # not to be confuesed with perl6
Perl
while(my $foo = <>){
print $foo;
}
Java
class parot{
static BufferedReader stdin = new BufferedReader(new
FileInputStreamReader(System.in));
public static void main throws IOExseption{
String foo;
while(foo=stdin.readLine){
System.out.println(foo);
}
}
}
__end__
Perl has dinamic arrays
Java does not
Perl does not kare what your script is caled.
Java Does
In conclusion Java Has All The Cons Of Perl With None Of The Benefites
is the perfict languige but perl is just a languige thats populer and
im lerning it
Java is staticly typed and slower than perl and espeshaly consitering
perl has to parse Sourse Code Most of the time. it has all the cons of
a scripting languige with none of its pros wich is Loose Dinamic
Typeing. lets compare some perl code to some java.
Hello World
Perl
print "hello world\n";
Java
class hello{
public static void main(){
System.out.println("hello world");
}
}
Parot # not to be confuesed with perl6
Perl
while(my $foo = <>){
print $foo;
}
Java
class parot{
static BufferedReader stdin = new BufferedReader(new
FileInputStreamReader(System.in));
public static void main throws IOExseption{
String foo;
while(foo=stdin.readLine){
System.out.println(foo);
}
}
}
__end__
Perl has dinamic arrays
Java does not
Perl does not kare what your script is caled.
Java Does
In conclusion Java Has All The Cons Of Perl With None Of The Benefites