in reply to Re^2: Timing of Array-Size Determination Methods (scalar() != function)
in thread Timing of Array-Size Determination Methods

All functions in perlfunc are in fact operators, I think. I believe the term "unary operator" is also used for ($)-prototyped functions, like how "list operator" is for (@)-prototyped (or prototypeless) functions.

Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

  • Comment on Re: Re^2: Timing of Array-Size Determination Methods (scalar() != function)

Replies are listed 'Best First'.
Re^4: Timing of Array-Size Determination Methods (UNOPs)
by Aristotle (Chancellor) on Jun 03, 2003 at 11:11 UTC
    Some further optree inspection suggests you are right; point taken. The point that, for those who care, scalar @_ compiles to 3 fewer ops than $#_ + 1 still stands though.

    Makeshifts last the longest.