Help for this page

Select Code to Download


  1. or download this
    while (($_) = sort keys %data){ 
     
     print "while: $data{$_}\n"; 
     delete $data{$_}; 
    }
    
  2. or download this
    while (my ($k, $v) = each %data) {
      print "key is $k, value is $v\n";
    }