http://qs321.pair.com?node_id=682048


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.