in reply to why wont $i increment?
Because "$i++" is a string consisting of the value of $i and then ++. It is not a Perl expression.
What you want might be
delete $data->{"exclude-$k{$_->{name}}-" . $i++} for @a;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: why wont $i increment?
by misterperl (Friar) on Sep 08, 2023 at 13:22 UTC |