Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: Unpack Many Fields

by ikegami (Patriarch)
on Feb 16, 2010 at 02:47 UTC ( [id://823386]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Unpack Many Fields
in thread Unpack Many Fields

Not at all. For starters,

s/(?:#.*)|\n|\s//g

is the same as

s/#.*|\s//g

Secondly, spaces are allowed in the pattern, so your change is unwarranted.

Finally, comments are allowed in the pattern, so you don't need the substitution at all.

Replies are listed 'Best First'.
Re^5: Unpack Many Fields
by shoness (Friar) on Feb 16, 2010 at 02:54 UTC
    Spaces AND NEWLINES are accepted in the pattern! Cool.
    That's why you're the boss! ++

    Cheers!

Log In?
Username:
Password:

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

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

    No recent polls found