On 10 May 2007, at 23:48, Jonathan Vanasco wrote:
that also means that variables are sticky -- if you change something from $a= "b" to $a.= "b" , you'll see the var appending b on every iteration

No you don't:

  sub frog {
      my $x;
      $x .= 'x';
      return $x;
  }

  print frog(), "\n" for 1 .. 10;

prints

  x
  x
  x
  x
  x
  x
  x
  x
  x
  x

--
Andy Armstrong, hexten.net

Reply via email to