Forum Moderators: coopster & phranque

Message Too Old, No Replies

Struggling to learn Perl

Any suggestions?

         

grnidone

3:47 pm on Oct 30, 2000 (gmt 0)



Ladies and Gentlemen,

I am currently trying to learn Perl.

I have been told that the Riley animal books are good, but I feel like I have to know the questions to ask to make them worth anything.

I am currently using Laura Lemay's book "Learn Perl in 21 Days". I have used her books before and found them to be good, but lacking in some areas.

Have any of you used this book, and have you found something better?

Thanks,
-heather

Brett_Tabke

9:44 pm on Oct 30, 2000 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I have heard good things about that learn perl in 21 days book. Do not be affraid to ask ANY perl questions what-so-ever. Me, Air, Little, and Dave will trip over ourselves trying to answer them. There are other folks on Moderators - (RC, Oil) that also love picking up Perl bits and pieces.

grnidone

10:46 pm on Oct 30, 2000 (gmt 0)



Groovy.
Thanks,
Heather

Brett_Tabke

4:41 pm on Nov 21, 2000 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



As you can see, I moved it back into the limelight and renamed it to Perl for us.

eljefe3

3:37 pm on Feb 13, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Any other recommended PERL books out there. I'm heading to the metropolis of Singapore and there's a Border's bookstore there. Time to delve in.

sugarkane

4:04 pm on Feb 13, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd definitely go with the O'Reilly ones - Learning Perl is a good starter, and Perl Cookbook is indispensable later on.

Brett_Tabke

5:16 pm on Feb 13, 2001 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Here is a nice series of articles on beginning in Perl:

[pageresource.com]

[perl.com]

littleman

6:24 pm on Feb 13, 2001 (gmt 0)



I really found Perl Black Book (isbn 157610-465-6) to be very much an asset. My copy of the book is all worn out.

It has a LOT of practical code examples. It seems to be written in a way that will encourage you to get your hands dirty vs. teaching you the fundamentals.

John_Wake

7:27 pm on Feb 13, 2001 (gmt 0)



Thanks, BT, for the links to the online tutorials. I was researching Perl tutorials yesterday and these sites are as good or better than any I found.

A good beginners book that I'm digesting right now is "Perl and CGI for the World Wide Web" by Elizabeth Castro. I'm constantly amazed how this gifted technical writer makes Perl and CGI seem almost friendly!

grnidone

9:48 pm on Jul 31, 2001 (gmt 0)



A good beginners book that I'm digesting right now is "Perl and CGI for the World Wide Web" by Elizabeth Castro. I'm constantly amazed how this gifted technical writer makes Perl and CGI seem almost friendly!

I concur. I love that book. :)
-G


theperlyking

10:32 pm on Jul 31, 2001 (gmt 0)

10+ Year Member



I dont think (personally) you can beat a book for learning and especially for referring quickly too.

My choice for perl books= anything by O'Reilly, e.g learning perl.

Bolotomus

11:06 pm on Jul 31, 2001 (gmt 0)

10+ Year Member



O'Reilly is definitely you best source of tech books.

But to really LEARN Perl, not just read about Perl, I suggest three things.

#1 - First, check out other people's Perl code. Of course you'll run into things that blow your mind, I still do after 4 years of Perling. Because there's "more than one way to do it" you are always exposed to new concepts that way, even when it comes to simple things like "reading a file."

#2 - Visit the IRC channel #perl on DalNet. I find the crowd there extremely helpful, friendly, and if you honestly want to learn perl they will have endless patience with you.

#3 - Believe it or not, I think that looking at what they call "Obfuscated Perl Contests" is quite fun, and quite educational. These are contests where people try to write the ugliest most incomprehensible Perl code possible. Trying to determine the output of these monstrosities actually helped my understanding of Perl, as most of these programs employ several little-known aspects of the language.

Bolotomus
Just Another Perl Hacker
s**'@z!~;()=~$x>;%x>l;$(,<x>'*e;y*%z),$;@=<x>!;h(l~;*punch jokers;halt;*;print;

theperlyking

11:12 pm on Jul 31, 2001 (gmt 0)

10+ Year Member



#4 - Play with it, I'm a relative newbie but the more I play with it the more little things I find out about it.

grnidone

3:41 am on Aug 1, 2001 (gmt 0)



>#1 - First, check out other people's Perl code.

I agree, don't get me wrong, but the thing I am most concerned about is, as a newbie to Perl, I don't know what 'good Perl' looks like.

I could be studying somthing that is completely hacked/ duct taped together, and wouldn't even know it. If I am going to study someone else's code, I want to know that it is .. clean.

Ya dig?

-G

Bolotomus

9:55 pm on Aug 2, 2001 (gmt 0)

10+ Year Member



> I don't know what 'good Perl' looks like.

Good point! I didn't necessarily mean to look at some Freshman student's Perl code, or some hacker's Perl code. Look at code written by Randall Schwartz or Tom Christiansen, or of course Larry Wall himself. Or any of the distribution modules like CGI.pm. Undoubtedly you'll run into lines of code that make your head spin, and you say "What the heck does this mean?" Great! Now you have a puzzle on your hands. Soon expressions that looked like line-noise to you a short while ago will become crystal clear.

You'll also then be on your way to developing your own style in Perl which bests matches your overall programming style. Some people like to use the inverted-if syntax (e.g., exit if $x=0) while others avoid it. Some people use regexes for everything while others like to use split and substr(). Randall Schwartz (et al) loves to nest powerful functions like map{} and split and join in funky ways to perform amazing data transformations in single expressions. It's all up to you.

Even though I've been doing Perl for a few years now my style is just starting to emerge. I'm still pretty much a big copy-cat... :)

Take care
Bolot

littleman

1:53 am on Aug 3, 2001 (gmt 0)



I purchased Elizabeth Castro's book three years ago. It is a good place to get started if you have *no* programming experience, but you will soon leave it behind.

mdharrold

1:00 am on Aug 4, 2001 (gmt 0)

10+ Year Member



I have been using "Perl, CGI, and JavaScript COMPLETE" by Sybex.
The best part is that the perl section starts with one script and continues to build on it so that new elements are introduced line by line and then disected.

Bolotomus

4:15 pm on Aug 8, 2001 (gmt 0)

10+ Year Member



The Perl Cookbook by Tom Christiansen (et al) is a great way for the intermediate Perl programmer to see examples of how Perl can solve real-world problems.

In fact, I have observed that 95% of all "How do I do ___ in Perl?" questions that I see online can be answered within the pages of this precious tome.