}
}
} else {
- $class = @{ $self->_csv->profile }[0]->{class};
+ $class = $self->_csv->profile->[0]->{class};
}
return $class;
foreach my $p (@{ $self->_csv->profile }) {
my $row_ident = $p->{row_ident};
if ($line->{datatype} eq $row_ident) {
- $spec = @{ $self->_specs }[$i];
+ $spec = $self->_specs->[$i];
last;
}
$i++;
}
} else {
- $spec = @{ $self->_specs }[0];
+ $spec = $self->_specs->[0];
}
return $spec;
foreach my $h (@{ $self->_csv->header }) {
$header = $h;
if ($self->_csv->profile) {
- $profile = @{ $self->_csv->profile }[$i]->{profile};
- $class = @{ $self->_csv->profile }[$i]->{class};
+ $profile = $self->_csv->profile->[$i]->{profile};
+ $class = $self->_csv->profile->[$i]->{class};
}
my $spec = $self->_parse_profile(profile => $profile,