in reply to Re: How to use a splice inside a foreach
in thread How to use a splice inside a foreach

Sorry for the late reply, for some reason perlmonks was not responding for days.

Thanks, hv, tybalt89, LanX and The_Dj for your great suggestions, I can use one of these.

PS, indeed, the exists was wrong as well. not exists ( $someConfig->{$_} ) was supposed to prevent the autovivication of the key in $someConfig.

  • Comment on Re^2: How to use a splice inside a foreach