Discussion on:

8
Comments

Join the conversation!

Follow via:
RSS
Email Alert
0 Votes
+ -
Editor
The downloadable version of this article is available here:
http://techrepublic.com.com/5138-3513-6077060.html

Are you an expert Perl programmer? What additional advice can you give aspiring Perl users? What is your favorite Perl script?
0 Votes
+ -
Don't forget you can insert command line commands right into Perl with a simple '

So I can use command line commands without having to reinvent them!

Oh and if you are doing any string parsing make sure to use Perl. It has the Boyer-Moore algorithm built right in!

Plus Perl doesn't have any of those stupid immutable type issues of Python *ducks*
0 Votes
+ -
backticks
apotheon 25th May 2006
That'd be backticks. For example:

`ls`;

Don't accidentally use apostrophes/single-quotes for that, or you'll just ned up with an unparsed string instead of an executed shell command. Of course, while backticks are great in brief admin scripts, they're pretty nonportable since you have to have the same shell and/or programs available on every system where you choose to run your Perl program, so know your userbase when deciding whether to use backticks.
You state that Perl is a made-up name. In "Learning Perl" (Schwartz & Christiansen, O'Reilly) the authors state that Larry Wall endorses both "Practical Extraction and Report Language" and "Pathologically Eclectic Rubbish Lister". So, if both of those are merely backfitted acronyms, where DID the name Perl come from? Curious Perlers want to know!
0 Votes
+ -
Matthew made it up!
apotheon Updated - 5th Jun 2006
According to Wikipedia:

Perl was originally named "Pearl", after "the pearl of great price" of Matthew 13:46. Larry Wall wanted to give the language a short name with positive connotations; he claims that he looked at (and rejected) every three- and four-letter word in the dictionary. He also considered naming it after his wife Gloria. Wall discovered before the language's official release that there was already a programming language named PEARL and changed the spelling of the name.

note: Schwartz and Christiansen? Apparently, you have the same edition of Learning Perl that rests on my shelf. I can't swear to it, having never laid eyes on a first edition, but I'm pretty sure it originally only bore Randal Schwartz's name (I suppose I should ask him next time I correspond with him). The second edition (which is what I own) also bears Christiansen's name, and the words "UNIX programming" grace its cover near the top. The third edition is credited to Schwartz and Tom Phoenix (the same credit on Learning Perl Objects, References, and Modules, also an excellent book that has in its second edition come to be called Intermediate Perl): the third edition has had a significant bit of its unixy bias cut from it. The fourth edition is credited to "Randal L. Schwartz, Tom Phoenix, and brian d foy", with the latter being a well-known member of the PerlMonks community. According to brian d foy, the last vestiges of platform-specific bias were removed from the text of the book and some rearrangement was done.

Err, that was a bit more than I initially intended to say. I just happened to notice that you credited the authors listed on the second edition, which is the same edition I have on my shelf. I've read parts of the fourth edition, however. There are definitely parts of the second edition I prefer, but since I've been doing basically all of my Perl work with unices in mind as the platform, the platform-agnostic approach of the fourth edition isn't terribly important to me.
0 Votes
+ -
Thanks for the info on the name's origin, although anything coming from Wikipedia I must take with a few grains of salt. Yes, I have the 2nd Edition, by Randal L. Schwartz and Tom Christiansen, with Foreword by Larry Wall.
.plx extension?

First I've heard of it, or if I did know, I've forgotten.

Considering the many Perl scripts I've already written with .pl, I probably won't be using .plx anytime soon.

And .pl is suppose to be a Perl library?

When's the last time anyone used Perl libraries?
The OP is over 2 1/2 years old

Just thought I would point that out.
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.