in reply to Re: Solicitation For Ideas: Tutorial On Precedence
in thread Solicitation For Ideas: Tutorial On Precedence

dragonchild,
We have Tutorials for many things that are already explained in the documentation from using pack/unpack to command line arguments. The point is that not all people immediately understand this information and they need it presented to them in a different way. Perhaps I am thinking more of a beginner's guide to precedence. It seems that for a lot of people who's first language is Perl - they come to expect the Do What I Mean (DWIM) approach. I often get WTF comments in #perl when I am explaining an answer by stating that "...binds more tightly than...".

Or perhaps - I am just misjudging the need.

Cheers - L~R

  • Comment on Re^2: Solicitation For Ideas: Tutorial On Precedence

Replies are listed 'Best First'.
Re^3: Solicitation For Ideas: Tutorial On Precedence
by dragonchild (Archbishop) on Feb 15, 2005 at 14:52 UTC
    I'm not dismissing the need for such a tutorial, but I suspect new users would be better served by a tutorial on how Perl code is chunked with a section on operator precedence. That way, you can include things like
    • Creating a list of hashrefs using map{}
    • Why doesn't print (3+5)/3; DWIM?
    • Why do some people do things like my $x = $hash_of_stuff{+shift}?

    The real topic is a larger one than the one you're looking at.

    Being right, does not endow the right to be rude; politeness costs nothing.
    Being unknowing, is not the same as being stupid.
    Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
    Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

      dragonchild,
      The real topic is a larger one than the one you're looking at.

      Fair enough. Hopefully this thread gets enough input for me to write such a tutorial or motivates someone else to.

      Cheers - L~R