Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: You don't always have to use regexes

by petdance (Parson)
on Feb 25, 2005 at 03:06 UTC ( [id://434348]=note: print w/replies, xml ) Need Help??


in reply to Re: You don't always have to use regexes
in thread You don't always have to use regexes

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,
Andy

Replies are listed 'Best First'.
Re^3: You don't always have to use regexes
by PetaMem (Priest) on Feb 25, 2005 at 15:35 UTC

    If you're wondering if one string is the word "true", then that's not a pattern match, it's a string comparison.

    Ok, I second that. Probably I was mislead by the immediate popup of benchmarks in this thread.

    Bye
     PetaMem
        All Perl:   MT, NLP, NLU

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://434348]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-03-29 07:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found