ciamack has asked for the wisdom of the Perl Monks concerning the following question:
@array = ("text1_(Right):662:19990913:662:19990913:1", "text2(Right):8000:20020116:8000:20020116:1", "text3:6800:20021015:6900:20021014:1"); $Symbol= "text1_(Right)"; foreach $item (@array){ if ($item =~ m/$Symbol/i) { print "$item\n"; } }
I appreciate any help.
Thanks,
Ciamack
Edit by tye to add CODE tags and remove most BR tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Matching parenthesis in a string
by zigdon (Deacon) on Oct 15, 2002 at 15:32 UTC | |
|
Re: Matching parenthesis in a string
by Abigail-II (Bishop) on Oct 15, 2002 at 15:33 UTC | |
|
Re: Matching parenthesis in a string
by John M. Dlugosz (Monsignor) on Oct 15, 2002 at 19:37 UTC |