Subject: | Feature request: parse() method should allow for a returned/cloned object |
It would be nice when parsing streams inside of async system of fixed
width data if one didn't have to re-initialize and or clone the object
prior to parsing in order to get an object representation of the parsed
data.
Something like:
my $format = Text::FixedWidth->new;
$format->set_attributes(@attributes);
my $data_object = $format->parse( string => $str, clone => 1 );
$data_object->get_foobar; # parsed data
$format->get_foobar; # unset
If you think this is a good idea and don't have the time I could
probably whip up a patch pretty quick.
Thanks,
- Jason