in reply to Re^4: Counting bytes in a Unicode document
in thread Counting bytes in a Unicode document

If it's worth mentioning, it's as something to avoid. -s _ is a million times more readable than +(stat(_))[7].

Replies are listed 'Best First'.
Re^6: Counting bytes in a Unicode document
by etj (Priest) on Oct 23, 2024 at 08:55 UTC
    The point, which regrettably you missed, wasn't the (stat etc)[n] idiom. It's the use of _ as an argument to these operations to reuse the cached results of the last one.

      I used "_" in the post to which you replied. How could I have missed a point you didn't actually make? Like I said, your version ((stat(_))[7]) is—in my opinion—strictly worse than what I posted (-s _).