Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Learning the Deeper Secrets of Perl

by macrobat (Beadle)
on Jan 26, 2005 at 22:10 UTC ( #425400=note: print w/replies, xml ) Need Help??

in reply to Learning the Deeper Secrets of Perl

This might smack more of reinforcing fundamentals than deepening knowledge, but one thing that seems to work for me is to go through some more extensive shell scripts and see if you can't convert them into Perl, aiming at a reduction in code length and (hopefully) an increase in clarity. This might teach you something new about the shells as well.

Of course, this doesn't help you with broader design issues, and if you convert a poorly-thought-out script into perl, you get poorly-thought-out perl. Heck, even some well-thought out shell scripts might ignore perl-only idiomatic solutions, but you get the idea: use something that's been created as a proof-of-concept, and mirror that functionality in perl. Redesign if you deem it necessary.

Any *N*X box likely has a wealth of examples to draw from; and books on shell scripting should have shorter examples to copy. I'm sure googling will find you even more.

(This supplements the "write something to scratch your personal itch" line of advice I often hear; sometimes you don't even know what itches until you get further out into the forest.)

Something worth thinking about.

  • Comment on Re: Learning the Deeper Secrets of Perl

Replies are listed 'Best First'.
Re^2: Learning the Deeper Secrets of Perl
by radiantmatrix (Parson) on Jan 27, 2005 at 14:45 UTC

    This was advice I got early on in my quest to learn Perl. I have a "toy" Debian box that I use to play with new ideas and such; I don't think there are any shell scripts left, save those that start before my /usr partition is mounted, and those that are so shell-cryptic I can't yet understand what they do. ;-)

    Sadly, I didn't find anything truly advanced there (maybe in the shell stuff I don't get yet, there are gems) from a Perl perspective. I did, however, learn a lot about perl -x

    require General::Disclaimer;
    s//2fde04abe76c036c9074586c1/; while(m/(.)/g){print substr(' ,JPacehklnorstu',hex($1),1)}

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://425400]
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: (4)
As of 2022-12-06 06:18 GMT
Find Nodes?
    Voting Booth?

    No recent polls found