Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^2: Fixed Position Column Records

by BrowserUk (Pope)
on Jul 22, 2007 at 04:49 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (1)
As of 2021-08-05 02:00 GMT
Find Nodes?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)

    Results (44 votes). Check out past polls.