"Patrick R. Michaud" <[EMAIL PROTECTED]> wrote:
:Howeven, "returns a Failure object" in this context (autodecrement)
:still seems a bit ambiguous, because the return values of autoincrement
:and autodecrement are often ignored, as in:
:
:    my $s = 'A00';
:    $s--;
:    say $s;
:
:So, what happens in the above?  Does $s become a Failure object?
:Does autodecrement recognize that it's in void context and thus
:becomes immediately fatal?

I'm not sure what the answer is, but it should be the same as for:
  my $s = 0;
  $s = 1 / $s;
  say $s;

In both cases, it is a domain error.

Hugo

Reply via email to