croak 'must parse first' unless $self->_parsed;
$self->_make_objects unless $self->_objects;
- return wantarray ? @{ $self->_objects } : $self->_objects;
+ return $self->_objects;
}
sub errors {
my $status = $csv->parse;
my $hrefs = $csv->get_data;
- my @objects = $csv->get_objects;
+ my $objects = $csv->get_objects;
my @errors = $csv->errors;
Parse the data into objects and return those.
-This method will return list or arrayref depending on context.
+This method will return an arrayref of all objects.
=item C<get_data>