Help for this page

Select Code to Download


  1. or download this
    # endless loop here
    while(my ($r,$s) = each(%{ {x=>5,y=>8}})) {
        print($r);
    };
    
  2. or download this
    # this works
    my $h={x=>5,y=>8};
    while(my ($r,$s) = each(%{ $h })) {
        print($r);
    };