in reply to RFC: Text::FixedWidth
What I'd like to see is something that lets me paste-in a data sample, and mark field boundries using special characters, then allows me to name them. Something like:
I also like the idea of specifying the info using XML.# Sample Data ---- # FirstName Lastname YearBorn LastHaircutDate # I'd like to specify the above as: my $fields= " [irstName ][astname ][earBorn ][astHaircutDate ]"; my @fieldnames=qw( FirstName Lastname YearBorn LastHaircu +tDate); #Alternatively, allow optional TYPE specification with mixed hashrefs +and strings: my @fieldnames=( 'FirstName', 'Lastname', {name=>'YearBorn', +type='integer'}, {name='LastHaircutDate',type='date'});
"Income tax returns are the most imaginative fiction being written today." -- Herman Wouk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: RFC: Text::FixedWidth
by runrig (Abbot) on Feb 17, 2006 at 00:04 UTC |