in reply to Locate emement in array and delete
You can grep to filter a list.
#!/usr/bin/perl use warnings; use strict; my @array = grep ! /^--(?:config|enter)$/, @ARGV; print "@array";
If you're not working with strings, you need to use something more complex.
|
|---|