Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Solicitation For Ideas: Tutorial On Precedence

by dragonchild (Archbishop)
on Feb 15, 2005 at 14:22 UTC ( #431185=note: print w/replies, xml ) Need Help??


in reply to Solicitation For Ideas: Tutorial On Precedence

Print out the chart from perlop? Seriously - I'm not seeing the benefits here. Maybe it would be better to have a tutorial on how perl parses your Perl with a section on precedence in there.

Me, I just use -MO=Deparse and be done with it. :-)

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.

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

Replies are listed 'Best First'.
Re^2: Solicitation For Ideas: Tutorial On Precedence
by Limbic~Region (Chancellor) on Feb 15, 2005 at 14:39 UTC
    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

      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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2021-03-01 16:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (13 votes). Check out past polls.

    Notices?