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

Re: how to identify a fixed width file

by Cody Pendant (Prior)
on May 14, 2008 at 12:41 UTC ( #686502=note: print w/replies, xml ) Need Help??

in reply to how to identify a fixed width file

The definition of a fixed width file being [...] records may be of different lengths
There's your problem.

Nobody says perl looks like line-noise any more
kids today don't know what line-noise IS ...

Replies are listed 'Best First'.
Re^2: how to identify a fixed width file
by Anonymous Monk on May 14, 2008 at 14:29 UTC
    Now I can look at a file by eye and say yes it's fixed width, so it should be possible to do so programmatically.
    Didn't the natural language recognition folks start out saying something very similar?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://686502]
[Eily]: I just wrote a oneliner to solve a (non perl) colleague's problem, and it worked on the first try
[Eily]: and he wasn't impressed
1nickt adds gingersnaps to the platter on the sideboard.
[Eily]: sure it was a pretty standard one liner (of the $h{$1} = $2 if /regex/; END { pp \%h; } variety), but he's not supposed to know that!
[Eily]: what's the point of writing perl if people aren't impressed :P

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2017-04-26 15:00 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (482 votes). Check out past polls.