in reply to Use of freed value in iteration

First line of code
foreach my $uid(keys %$userids){
the "%$userids" should be "%userids".
foreach my $uid(keys %userids){

Forget that fear of gravity,
Get a little savagery in your life.

Replies are listed 'Best First'.
Re^2: Use of freed value in iteration
by pg (Canon) on Sep 08, 2005 at 14:14 UTC

    Not necessary. Without seeing his data structure, you cannot safely assume that $userids is not a hash ref. If it is a hash ref, then his syntax is alright.

      Good point.

      Forget that fear of gravity,
      Get a little savagery in your life.