No flames from me.

One of Perl's strong/weak points is that there are too many ways to do
something... I agree with that.  But it is up to the programmer to implement
solutions that make sense and are easy to maintain.  I personally like
having the power to do what I need to do, which makes it my responsibility
to use that power wisely.

Some things that I avoid:

s/^\s*(.*?)\s*$/$1/,print for (<>);

Instead I use this:

foreach my $line ( <STDIN> ) {
  $line =~ s/^\s*(.*?)\s*$/$1/; # trim space
  print $line;
}

Of course if I had to write a one-liner to run at the command line I opt for
the first... saves me lots of time and typing.

....Just be curtious when you code.

Rob


-----Original Message-----
From: Maciejewski, Thomas [mailto:[EMAIL PROTECTED]]
Subject: RE: C vs. Perl


not to get flamed here but one of the reasons I dont like perl is that there
are sometimes too many ways to do something ... and all of them are fairly
cryptic ... 
people having different coding styles can really confuse the hell out of
someone else that is trying to do some work with the code.  

While many may think that this is strong point of perl I see it as a
limitation when working on larger programs.  opinions? 

can someone post the main debate points for perl vs java for web development

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to