(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.


In reply to Re: Re: Re: What new tutorials would you like to see in Tutorials? by Juerd
in thread What new tutorials would you like to see in Tutorials? by ybiC

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.