Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Conditional Elimination

by cdarke (Prior)
on Aug 30, 2011 at 11:01 UTC ( [id://923177]=note: print w/replies, xml ) Need Help??


in reply to Conditional Elimination

First, you should not be using variables $a and $b because these are magic variables used in sort. More importantly they are probably meaningless in your context.

Anyway, you might be better off using a regular expression (RE) to check patterns rather than literal values. I say 'might' because it really depends on the application, and REs can be slow. This is a balance decision which only someone with complete knowledge of the application can make.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-04-19 13:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found