in reply to Re: Getting times (weeks, days, hours, minutes, seconds)
in thread Getting times (weeks, days, hours, minutes, seconds)

$something->func($x)
is rarely equivalent to
func($something, $x)
More like
Class::Or::Superclass::Of::Something::func($something, $x)

Your explanation just reinforces the OP's misconception that printf gets called, but it's not involved one bit.

Replies are listed 'Best First'.
Re^3: Getting times (weeks, days, hours, minutes, seconds)
by jethro (Monsignor) on Jul 06, 2010 at 08:33 UTC
    Not if she reads the complete sentence, and definitely not if she reads the complete post. And if you throw "Class::Or::Superclass::Of::Something::func($something, $x)" at someone unfamiliar with basic concepts of perl OO, you might as well offer a zen koan ;-).

      I didn't say it was wrong, just misleading. "printf means exactly what you think it means except it really means something completely different." and "There is also an easy way to understand printf" when the "real" printf isn't used in the snippet.

      And if you throw "Class::Or::Superclass::Of::Something::func($something, $x)" at someone unfamiliar with basic concepts of perl OO, you might as well offer a zen koan ;-).

      That's part of what I'm saying.

        I'm not too happy myself that I had to say "It works like this but it isn't used here". But I was reading her last sentence as a general(!) question about '->' and 'printf' still unanswered. That the module's printf is modeled somewhat after the real printf makes the knowledge even marginally relevant to the script.