|
|
@ -64,6 +64,8 @@ sub parse { |
|
|
|
my $PREFIX = $self->{_prefix}; |
|
|
|
my $PREFIX = $self->{_prefix}; |
|
|
|
return $self->error("not looks like $PREFIX line") |
|
|
|
return $self->error("not looks like $PREFIX line") |
|
|
|
unless $line and $line =~ m{^$PREFIX:}i; |
|
|
|
unless $line and $line =~ m{^$PREFIX:}i; |
|
|
|
|
|
|
|
$self->{_prefix} = $1 |
|
|
|
|
|
|
|
if ref($self->{_prefix}) eq 'Regexp'; |
|
|
|
return $self->error("passed custom fields order not ARRAY ref") |
|
|
|
return $self->error("passed custom fields order not ARRAY ref") |
|
|
|
unless $format and ref($format) eq 'ARRAY'; |
|
|
|
unless $format and ref($format) eq 'ARRAY'; |
|
|
|
|
|
|
|
|
|
|
|