Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: You don't always have to use regexesby petdance (Parson) |
on Feb 25, 2005 at 03:06 UTC ( [id://434348]=note: print w/replies, xml ) | Need Help?? |
I suppose, the whole meaning of this example is to show how to programm efficiently - not wasting system ressources (here: CPU time).
Absolutely not. That has nothing to do with it. CPU efficiencies on the scale that we're talking about are irrelevant. The point is to use the construct that most closely matches the semantics of what you're trying to achieve. If you're wondering if one string is the word "true", then that's not a pattern match, it's a string comparison.
xoxo,
In Section
Meditations
|
|