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

Re^2: parsing data in a file

by CountZero (Bishop)
on Nov 02, 2010 at 15:36 UTC ( [id://869023]=note: print w/replies, xml ) Need Help??


in reply to Re: parsing data in a file
in thread parsing data in a file

And as sometimes TAB characters hide themselves as whitespace, I usually write such regexen as /:\s+/

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^3: parsing data in a file
by kcott (Archbishop) on Nov 02, 2010 at 15:44 UTC

    Good point, CountZero. And a requirement in more complex REs that you've spaced out for readability: / : \s+ /x (a bit over-the-top for that example but it shows the intent :-)

    -- Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-25 22:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found