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

Re: Re^2: fastest pattern match

by d4vis (Chaplain)
on Jun 24, 2002 at 20:11 UTC ( #176928=note: print w/ replies, xml ) Need Help??


in reply to Re^2: fastest pattern match
in thread fastest pattern match

Good advice in general,
but in this case there'll only be one interation.

Update: Fastolfe's right...my bad...mea culpa

~monk d4vis
#!/usr/bin/fnord


Comment on Re: Re^2: fastest pattern match
Re: Re: Re^2: fastest pattern match
by Fastolfe (Vicar) on Jun 24, 2002 at 20:25 UTC
    Why? If we were sure the match would always occur on the first line, why search for it at all?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (12)
As of 2015-05-05 20:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (127 votes), past polls