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

Re^2: Fixed Position Column Records

by BrowserUk (Patriarch)
on Jul 22, 2007 at 04:49 UTC ( [id://628075]=note: print w/replies, xml ) Need Help??


in reply to Re: Fixed Position Column Records
in thread Fixed Position Column Records

Posted here to ensure it comes to the OPs attention.

Replace the regex used by the pattern building code with

while $mask =~ m[([^ ]+)( +|$)]g;

That is, replace \S and \s with literal spaces as the ORing process can generate chr(9) and other characters that would be treated as whitespace and so create false columns.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

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

    No recent polls found