Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by runrig (Abbot)
on Apr 21, 2008 at 23:27 UTC ( [id://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 this...at 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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-18 09:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found