Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

perl exercises for newbies

by TuXaS (Initiate)
on Jul 17, 2002 at 20:42 UTC ( #182580=perlquestion: print w/replies, xml ) Need Help??

TuXaS has asked for the wisdom of the Perl Monks concerning the following question:

can you tell me where i can found perl exersises for newbies? Because i need more practice to go on long perl programist way :].

Replies are listed 'Best First'.
Re: perl exercises for newbies
by DamnDirtyApe (Curate) on Jul 17, 2002 at 21:53 UTC

    Here's an excellent exercise for newbies & gurus alike: Seekers of Perl Wisdom.

    Spend some time perusing the newest questions posted by others. Try and answer them without first reading the replies. Then, take a look at the solutions offered by others, and see how your code could be improved. If you've got an original solution, or questions about another solution offered, post it! Perlmonks is quite newbie-friendly, so long as you show some effort.

    D a m n D i r t y A p e
    Home Node | Email
Re: perl exercises for newbies
by Marza (Vicar) on Jul 17, 2002 at 20:54 UTC

    Exercises? There are a multitude of things to do. The great thing about perl is in its exploration. Think of something and just do it!

    Take a look at the Tutorials They can give you ideas on what to play.

    You can also take a look at the Code Catacombs. People submit stuff for people to use. See if you can convert something and or improve it

    It may sound like a great deal but that's how I learned. Each new attempt always teaches me something.

    But if you need real newbie stuff. I would suggest playing around with arrays, hashing, and map. Try stuff like reversing, deleting, add and sorting. If you are going to do Web stuff, try the CGI. Again Tutorials will help you....

    After you think you are good, try some obfuscation!

    Just some ideas and welcome to the fold

Re: perl exercises for newbies
by Popcorn Dave (Abbot) on Jul 17, 2002 at 21:15 UTC
    Most Perl texts have numerous exercises in them. I know the O'Reilly books do, and Dietel's book on Perl programming does to.

    However if you're not excited by those, the best way ( I think ) to learn is do something you are interested in. Self projects are infinitely more interesting than excersises in books and you'll gain something useful when you're done and learn something in the process.

    Failing that, drop me a note and I'll zip up the exercises from the Perl class I took if you would like.

    Some people fall from grace. I prefer a running start...

      but maybe you know some url's in internet, where i can find exercises by section?
Re: perl exercises for newbies
by ehdonhon (Curate) on Jul 17, 2002 at 21:16 UTC

    One of the first exercises I was given to do when I was learning perl was re-writing standard unix tools in perl. For example: cat, cut, basename, dirname, echo, head, tail, ln, rm, ls, more, mail, etc...

Re: perl exercises for newbies
by dada (Chaplain) on Jul 18, 2002 at 09:43 UTC
    a good thing to do, IMHO, would be to buy the Perl Cookbook and try to cook up your own recipes. then compare yours with the authors one and learn, learn, learn.

    there are hundreds of problems there, ranging from very simple to very complex, and you'll have a great fun digging through it.

    BTW, the recipes are also posted daily on, if you *really* can't pull the bucks.


    __END__ $_=q,just perl,,s, , another ,,s,$, hacker,,print;
Re: perl exercises for newbies
by Abstraction (Friar) on Jul 17, 2002 at 21:11 UTC
    Good Exercises: write code, re-write your code, read other peoples code, re-write other peoples code.
Re: perl exercises for newbies
by flyboy (Novice) on Jul 18, 2002 at 17:18 UTC

    I think it really depends on how "new" you are. I've been programming in Perl for 4 years - and there is still much I don't know. So I would consider myself a new user of a particular function or feature of Perl rather than of the whole language. Not all Perl programming challenges may be that challenging to you, it depends on your background and previous experience.

    I started with Learning Perl from O'Reilly. The challenges in the back of each chapter were just what I needed to get a toe hold in Perl. I started with almost zero knowledge of programming. If you already have some programming knowledge then I would recommend something more challenging (like trying to rewrite the Perl Cookbook). ;-)

A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://182580]
Approved by Kanji
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2021-10-19 09:51 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (76 votes). Check out past polls.