in reply to Re: replacing say function
in thread replacing say function

And it won't work for a say without arguments when a lexical $_ is in effect. But your say will work in 99.5% of the cases.

Replies are listed 'Best First'.
Re^3: replacing say function
by bart (Canon) on Feb 11, 2011 at 22:50 UTC
    Since lexical $_ was new in Perl 5.10, I don't think there is a problem with that.
      And so was say, which turns out to be a "problem" for the OP. I don't think it will be an issue for the OP - and if it occurs in his program, it's something he needs to fix separately anyway. And the compiler will tell him where the program uses a lexical $_.