in reply to Re: Confused about unary +
in thread Confused about unary +

It's not only true for any build-in subroutine, it's true for any user defined subroutine as well. Why perldoc puts the remark at print, and why the warning only occurs at print and friends has been a mystery for me ever since I started programming Perl.

Abigail

Replies are listed 'Best First'.
Re: Re: Confused about unary +
by Not_a_Number (Prior) on Aug 25, 2003 at 21:26 UTC

    Thanks. I suppose that my question can thus be summarised as:

    Who are print's friends?

    dave

      printf

      Note also:

      $ perl -wle 'print("a")' a $ perl -wle 'print ("a")' print (...) interpreted as function at -e line 1. a $ perl -wle 'print ("a")' a $

      You only get the warning if there's exactly one space between printf? and the opening paren.

      Abigail