LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-26-2010, 09:35 PM   #1
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
PERL: Beginner Resources?


Hey guys,
I have spent quite some time working on my BASH scripting skills. I still have A LOT to learn, but for the most part I can manage to work my way through scripting most task. I still have to take the time to learn sed, awk, regexp's etc. However I feel I am at a point now where I think I would like to start learning perl.

So from reading this you can probably tell I am going to ask for some websites or whatnot that I can reference to begin learning. Well you are right, but before I get to that I think it is best to explain my learning style.

I have never been able to really learn from a hello world style primer. In fact I usually skim over primers and then I find something I want to do and work out a mental flow chart of how to do the script. Once I figure out the flow I basically start looking at code examples and start piecing together code to do what I am trying to do. I learn by doing, not by reading. If you point me to a book of mind numbing talk about how print basic strings, then defining variables etc. I will get bored and just skip it. I understand you have to learn the basics before you can just take off and do something. But I just can not deal with monogamous mind numbing reading material, I need something that will give me real world examples and teach me by having me write realistic scripts and not a text book script.

With all of that said, does anyone know of any resources that I can reference to learn perl, that will fit my learning style?
 
Old 01-26-2010, 11:34 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

As you know, one learns by "reading" and "writing". Reading code; reading books (or articles). Writing code, asking questions (as in forums like this).

Books, articles and postings are Good (at least when you're getting good information). Code is Good (at least when it's not crap code).

Having said that, I definitely recommend either/both the "Camel book" and/or the "Llama book":

http://oreilly.com/catalog/9780596520113/

http://oreilly.com/catalog/9780596000271


IMHO .. PSM
 
Old 01-27-2010, 08:59 AM   #3
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
You might take a look at these sites:
 
Old 01-27-2010, 09:35 AM   #4
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Original Poster
Rep: Reputation: 57
Thanks, I will give them a look.
 
Old 01-27-2010, 05:54 PM   #5
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
It sounds like your probability of success in learning Perl is high. I believe that people who learn programming [languages] by having practical projects to work on are 1.) able to recognize when a program can/should be used to help them, 2.) motivated to get the program working so that it does help them, & 3.) usually practical about starting with simple objectives. As far as books go, I completely agree with your sentiment about the plethora of uninteresting examples. I usually bail on those after the first chapter or less. I find a really well organized and thorough reference manual is as good as any learning resource. Something that organizes information in ways that demonstrate something about the nature of the language, categorizes similar bits of information, and provides just enough how-to info to get you looking in the right places to find the gory details.
I won't say the O'Reilly book 'Perl in a Nutshell' is exactly that, but is has enough of that style to make it worth recommending. My other standard recommendation is to find questions asked about the language of interest on forums such as this, and try to come up with your own solution. Usually, there will be more that one solution provided for contrast, as well as some narrative about why a certain method was suggested. In Perl, that goes double.

--- rod.

Last edited by theNbomr; 01-27-2010 at 05:58 PM.
 
Old 01-29-2010, 12:43 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
There's loads of practical examples in the official docs: http://perldoc.perl.org/, that's how they explain things. See also the tutorials at perlmonks http://www.perlmonks.org/?node=Tutorials.
Also, the Cookbook http://www.amazon.com/Perl-Cookbook-.../dp/1565922433 is worth it's weight in $resource_of_your_choice ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
perl script to monitor ubuntu linux computer resources mokona Linux - Newbie 7 06-22-2009 05:52 PM
LXer: 5 resources for learning Perl Graphical Programming LXer Syndicated Linux News 0 06-02-2009 11:00 AM
LXer: Installing Eclipse, the Epic Perl plugin and my first Perl GUI program LXer Syndicated Linux News 0 05-08-2009 06:41 PM
help me pick which to use for physics prog. : perl or bash? also need some resources jmd9qs Programming 19 04-26-2009 03:36 PM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration