today I learned in #perl while (my ($key,$value) = each %$hashref) { ... } gets ...

@xabean@infosec.exchange

today I learned in #perl

while (my ($key,$value) = each %$hashref) { ... }

gets its each iterator position rewound to the beginning if you use %{ $hashref } in list context inside the while loop, causing an infinite loop.

whoops.