This would be as succinct, more accurate, and a bit faster:
@data = grep $_ ne '4', @data; # Remove elements equal to '4'
In reply to Re^3: removing an element without index
by BrowserUk
in thread removing an element without index
by Levex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |