rsiedl has asked for the wisdom of the Perl Monks concerning the following question:
Cheers,if ( grep $term =~ /^(.*)$term(.*)$/, @terms ) { #remove the value that $term matched from the array } # end-if
Thanks conrad :)$_ =~ /^(.*)$term(.*)$/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: remove value from array without index
by conrad (Beadle) on Dec 09, 2004 at 13:39 UTC | |
|
Re: remove value from array without index
by davorg (Chancellor) on Dec 09, 2004 at 13:39 UTC | |
|
Re: remove value from array without index
by fglock (Vicar) on Dec 09, 2004 at 13:41 UTC | |
|
Re: remove value from array without index
by calin (Deacon) on Dec 09, 2004 at 17:29 UTC |