in reply to Tiny Perl puzzle

not sure about the precedence my first guess is "true" my second 1

Can't test ATM :)

Cheers Rolf

(addicted to the Perl Programming Language)

update

Replies are listed 'Best First'.
Re^2: Tiny Perl puzzle
by Anonymous Monk on Jun 06, 2014 at 01:16 UTC

      I think B::Deparse gets it wrong -- as it sometimes does -- when you add -p:

      My theory: When Deparse tries to add parens wherever it can, it treats the first two as a function call (which was my first guess too). But as tobyink correctly surmised, that first two is treated by print as a filehandle.

      This is confirmed by the more low-level output of B::Concise:


      Dave