in reply to pattern matching: why does the following code evaluate true? (and how do i fix it?)
i was just about to follow up with($key =~ m/.$key2/)
as being how i solved this problem ...($key =~ m/^$key2$/)
(well how O'Reilly solved it)
i geuss this means that the '.' in the string is interpreted as a wildcard matching to the end of the line?
that's interesting ... please correct me if i'm wrong but if that's the way it works that's a really cool thing to have learned
:)!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: pattern matching: why does the following code evaluate true? (and how do i fix it?)
by reptile (Monk) on May 31, 2000 at 03:17 UTC |