Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re3: Teaching Perl Idioms

by Masem (Monsignor)
on Sep 26, 2001 at 21:56 UTC ( [id://114882]=note: print w/replies, xml ) Need Help??


in reply to Re3: Teaching Perl Idioms
in thread Teaching Perl Idioms

Now I wouldn't go as far as suggesting to teach perl via golf. A good perl golf usually is an end result of knowing where whitespace isn't needed and taking advantage of perl's special variables outside of $_ and @_.

Mind you, showing a de-obfu golf program (with white space expands and variables named right) and the associated C/C++/Java solution may be useful. Or better yet, show the true power of list processing by comparing the Schwatzian TRansformation vs the equivalent in C. In perl, it's 3 simple lines vs much more than in most other languages.

-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
It's not what you know, but knowing how to find it if you don't know that's important

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://114882]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 23:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found