Er, and the first loop is better written as this:

  for %buckets.values -> my $arg_for {
      for 0 .. $arg_for{'count'} -> $index {
          $arg_for{'array'}.push($index * $arg_for{'scale'});
      }
  }
 
Instead of:

  for %buckets.kv -> my $bucket, $arg_for {
      for 0 .. $arg_for{'count'} -> $index {
          $arg_for{'array'}.push($index * $arg_for{'scale'});
      } 
  }

Cheers,
Ovid


-- If this message is a response to a question on a mailing list, please send 
follow up questions to the list.
 
Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/





Reply via email to