Parse-FixedLength

 view release on metacpan or  search on metacpan

t/validate.t  view on Meta::CPAN


BEGIN { $| = 1; print "1..4\n"; }
END {print "not ok 1\n" unless $loaded;}
use Parse::FixedLength;
$loaded = 1;
print "ok 1\n";

######################### End of black magic.
my $not = 'not ';

# Bad start-end at last_name, but don't we don't care
my $parser = Parse::FixedLength->new([
    seq_id     => '10:1:10',
    first_name => '10:11:20',
    last_name  => '10:22:30',
    country    =>  '3:31:33',
    widgets_this_year => '10R:34:43',
    zip => '10:44:53',
], {no_validate=>1});

print $not unless $parser;



( run in 0.732 second using v1.01-cache-2.11-cpan-4d50c553e7e )