Mailinglist Archive: opensuse (2532 mails)

< Previous Next >
Re: [opensuse] Quick perl question - why are @array[$num] and $array[$num] the same?
  • From: Sam Clemens <clemens.sam1@xxxxxxxxx>
  • Date: Thu, 01 May 2008 15:15:14 -0400
  • Message-id: <481A16C2.8080209@xxxxxxxxx>
David C. Rankin wrote:
Sam Clemens wrote:
David C. Rankin wrote:
Randall R Schulz wrote:
On Thursday 01 May 2008 00:36, Sam Clemens wrote:

I gave up on perl.
It makes my brain hurt -- like trying to read 1970's era BASIC code.

I concur. Perl verges on being an abomination. "Pathetically eclectic rubbish lister" indeed!

I once (in the Perl 4 era) wrote a code generation tool in Perl, but I no longer can even read that stuff.

If you're going to start programming things that go beyond what works well in BASH, you'd be better off with Python or Ruby or even Groovy.

Randall Schulz

That's real, real bad news Randall, I'm already 60% through perl.

It's worth taking a look at, if only for familiarization.
But don't try to do a "monster" program with it.
10000 lines of shell-script is more maintainable than
100 lines of perl.


My purpose for looking at perl was I wanted a more robust bash. I wanted something that had better file handling, data structures, loop and conditional expression support, regexp support, floating point, etc.. Just something that would allow me to do in 20-30 lines of code all (or at least 99%) the administrative stuff I need to do, but where I have run into limitations in bash.

For *THAT*, it's an excellant choice.

In contrast, I once worked at a place where the backup
scripts were several thousand lines long, written in ksh.

If I was ever going to do a big project, it would be in c/c++, (heaven forbid Fortran) something I already know. I thought perl would be a step up in scripting language from bash. Is that the wrong move?

depends on the size.

Would something else give me all perl's functionality in a better script language? I was really looking forward to the CPAN resource.

You guys let me know what you think. Thanks.

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >