in reply to late binding behavior in hash definition

You might as well ask why the right-hand side of
$x = ($x + 18) / 7;
does not take into account the value that you are trying to assign, before it is computed, and set $x to 3.

Replies are listed 'Best First'.
Re: Re: late binding behavior in hash definition
by japhy (Canon) on Nov 22, 2000 at 19:38 UTC
      I'm not kidding. Some languages have something a little like that. But you quickly get into big problems. Consider:
      my $x = not $x; my $y = $y-1;
      or
      my @a = (@a, 3);
      for example.