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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://133071]
help
Chatterbox?
[ambrus]: Corion: which coordinate system is the upside down one?
[Corion]: ambrus: "the other" ;) To me, "normal" for GUIs means (0,0) is left-upper corner of the monitor/window. But for Prima, the lower-left corner it is ;)
[Corion]: Which would be OK for mathematics and paper, for me ;)
[ambrus]: Ok, so Prima has a postscript-like coordinate system

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2016-12-09 10:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (150 votes). Check out past polls.