Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 meditating upon the Monastery: (8)
As of 2014-09-17 08:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (66 votes), past polls