in reply to Re^3: map sentence with subtraction interpreted as with negative number
in thread map sentence with subtraction interpreted as with negative number

Thanks.
But it's strange:
open my $A, '>', 'out.txt'; print $A - 1 == 0 ? "A\n" : "B\n"; # prints 'B' to STDOUT print STDERR - 1 == 0 ? "A\n" : "B\n"; # prints 'B' to STDERR
  • Comment on Re^4: map sentence with subtraction interpreted as with negative number
  • Download Code

Replies are listed 'Best First'.
Re^5: map sentence with subtraction interpreted as with negative number
by Anonymous Monk on Dec 01, 2015 at 15:08 UTC
    As someone said, 'indirect objects are pretty wicked'. They're a great source of bugs. You probably shouldn't torture the Perl's parser so hard in this spot, since it's especially fragile here.