in reply to V basic question about eq
when i try to compare 'you' it matches 'you' & 'you'll' and 'you're' etc...
i'm using if ($short1 eq $short2).
Okay, you've confused me. The string 'you' does not "match" the string "you'll" using string equality (eq).
All I got out of your post is that you are looking for a way to find strings that contain 'you' might contain "you'd" but must not contain "you'll" or "you're"... is that right? Something like
perhaps?$short1 =~ /^you(?:'d)?$/;
If not, maybe you could supply us with some code or a better example.
-sauoq "My two cents aren't worth a dime.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: V basic question about eq
by Wassercrats (Initiate) on Nov 21, 2003 at 17:41 UTC | |
|
Re: Re: V basic question about eq
by Anonymous Monk on Nov 21, 2003 at 17:40 UTC | |
by Wassercrats (Initiate) on Nov 21, 2003 at 18:04 UTC |