in reply to Re: Davorg,, Tilly and Any other "Experts" --- get with empiricism, not belief
in thread does anyone else use Parse::FixedLength;?
Then I have to jump through a couple of hoops (though I admit its not hard) to convert that to an array of just '@fieldnames', and a format string for unpack, and so now my one @format array turns into two arrays and a scalar floating around my code. I think it would save a bit of time and maybe be a bit cleaner to encapsulate that logic in a module (in a way I've suggested earlier), and I just may get around to doing it.# fieldname:length my @format = qw( field1:10 field2:20 field3:8 );
Update: Ok, for good or ill, I've taken princepawn up on his offer to let me take over the Parse::FixedLength module (look for v5.01 in a CPAN near you). Comments/criticisms welcome :-)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Davorg,, Tilly and Any other "Experts" --- get with empiricism, not belief
by Anonymous Monk on Jun 27, 2001 at 20:55 UTC |