Re: regex with dollar sign

2006-07-16 Thread Dr.Ruud
Ross McQueen schreef: > I have an array that contains words with dollar signs. > > For example: @names = AS$FD, FD$AS. > > I can grep this array successfully if I backslash the '$' sign: > my @results = grep /AS\$FD/,@names > > Hoever, I want to search @names with each of the names from another >

regex with dollar sign

2006-07-16 Thread Ross McQueen
Hello All: I have an array that contains words with dollar signs. For example: @names = AS$FD, FD$AS. I can grep this array successfully if I backslash the '$' sign: my @results = grep /AS\$FD/,@names Hoever, I want to search @names with each of the names from another array where the dollar si