in reply to Re: Re: What new tutorials would you like to see in Tutorials?
in thread What new tutorials would you like to see in Tutorials?

(re PLP tutorial) Wouldn't you be the best monk for this?

Well, perhaps. But I'm biased, and every time I try to write a tutorial, I notice how hard that is if you know all the inside information. A good tutorial should not cover everything there is, but it should also not forget to mention important things. All PLP comes natural to me, so I can't really focus well on what new users would want to know.

Isn't style essentially objective making it rather difficult tutor? But then again I guess you could offer a variety of widely accepted styles, hey wait a second ...

It would be *very* hard. This kind of tutorial shouldn't be about right and wrong, but be focussed at the differences in several styles and objectively (very, very hard) discuss the better and worse parts of each well known style. But mostly, it could help beginners understand why indenting and well chosen identifiers are important. Make people think about their array names: singular or plural.

I guess perlrun ain't enough for some people ;)

Well, it is. But it's a reference. perlrun can't teach you how useful -i -pe's///' can be. Today, I made this neat one-liner:

perl -anle'push @s, $F[1] > $F[2] ? $F[1] : $F[2]; END { print((sort { + $a <=> $b } @s)[.95 * @s] * 8 / 2**20) }'
Not the clearest of examples, but I think that, for most people, understanding -anle will be the hardest part.

Ah, but which Getopt library to tutor with (I'm guessing Getopt::Long with a smattering of POD::Usage)?

yBic /msg'ed me this node: The Dynamic Duo --or-- Holy Getopt::Long, Pod::UsageMan!.

- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.