Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Parsing

by jynx (Priest)
on Dec 19, 2001 at 13:19 UTC ( #133071=note: print w/ replies, xml ) Need Help??


in reply to Re: Parsing
in thread Splitting and formatting a line


Death to Dot Star!

Your regex will run much faster if you write it instead like so:

if (/([^:]*):([^:]*):([^:]*):([^:]*):([^:]*)/) {
except that it's unnecessarily difficult. Really, just use Ovid's solution or chip's solution.

jynx


Comment on Re: Re: Parsing
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2014-10-25 05:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (142 votes), past polls