Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Format, empty vars, and fixed-width records

by runrig (Abbot)
on Apr 21, 2008 at 23:27 UTC ( #682048=note: print w/replies, xml ) Need Help??

in reply to Format, empty vars, and fixed-width records

I would probably use Parse::FixedLength for least for the debugging phase...but I'm biased (since I'm the author). You could just use pack (with "A" for the format types) though.
  • Comment on Re: Format, empty vars, and fixed-width records

Replies are listed 'Best First'.
Re^2: Format, empty vars, and fixed-width records
by kwaping (Priest) on Apr 22, 2008 at 16:10 UTC
    Thanks for the suggestions! I'm going to research your proposed solutions. I did see your module when doing a CPAN search, but the naming didn't make it obvious that it could create fixed-length strings as well as read them.

    I have a related suggestion for your module. Please consider creating a new parameter to new called "justify" to ease the creation of records where every field must be right-justified.

    It's all fine and dandy until someone has to look at the code.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2023-05-30 08:40 GMT
Find Nodes?
    Voting Booth?

    No recent polls found