in reply to Re: Difference between leftward and rightward list operators
in thread Difference between leftward and rightward list operators

Thank you for answer, Athanasius!

So there are no separately leftward and rightward operators. There is only precedence context for operator, am i right?

  • Comment on Re^2: Difference between leftward and rightward list operators

Replies are listed 'Best First'.
Re^3: Difference between leftward and rightward list operators
by Athanasius (Archbishop) on Aug 02, 2015 at 13:35 UTC

    Yes, and the leftward/rightward distinction applies only to list operators, which the Camel Book’s Glossary (p. 1064) defines as follows:

    list operator
    An operator that does something with a list of values, such as join or grep. Usually used for named built-in operators (such as print, unlink, and system) that do not require parentheses around their argument list.

    Of the functions listed in Chapter 27 of the Camel Book, the list operators are those which take a LIST as their only, or final, argument. Thus, any user-defined subroutine with a prototype having @ as its final element is also a “list operator.” (See perlsub#Prototypes.)

    Hope that helps,

    Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,