Re: I find the perl syntax easier than python



On Apr 29, 11:12 am, fli...@xxxxxxxxx wrote:
I like perl. I've reading about python lately, which I found a little
annoying, and, today, I picked up Learning Perl and read a few

I find pantyhose annoying.

chapters. I like it. I think python is perhaps intended for someone
who hadn't programmed before, although, personally, I think it
somewhat fails at that. Perl, on the other hand, for someone who likes
shell, grep and awk, like I do, seems intuitive.


This depends on how you view Perl. Perl can be viewed as either
Procedural or Object Oriented.
..
I also like the versatility of the syntax. That said, although it's
versatile, it also seemed consistent.


Versalitily isn't always a good thing. This might be stretching the
realms of funky Perl code, but consider the following two programs
that will add two numbers.

#!/usr/bin/perl -w

sub modify{
my $value = $_[0] + $_[1];
print "$value \n";
}

my $x = 5;
my $y = 7;

modify(5,7);

and

#!/usr/bin/perl -w

sub modify{
my $first=shift;
my $second=shift;
my $value = $first + $second;
print "$value \n";
}

my $x = 5;
my $y = 7;

modify(5,7);

Python just annoyed me a little. It was just inconsistent.

In the end, all programming languages are just fagged up versions of
Lisp. Don't believe it? The following URL makes from some intresting
late night reading

http://www.paulgraham.com/icad.html

.


Quantcast