![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re: Regexp match start or endby LanX (Saint) |
on Jun 02, 2024 at 13:39 UTC ( [id://11159752]=note: print w/replies, xml ) | Need Help?? |
> But being AI, it can be unpredictable! And because of this I'd rather stick with separated, simple rules which can be easily maintained. Better expect more trouble to come. > with the single word "Perfect" Your logic is flawed though, this $reply !~ /^perfect/i will not only match (well reject) "single words" at the beginning.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|