X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/b8ede741b1a02521453237e37c5a46fcf9042576..8269a9775931a4d7f5e7a564fbf0a385bb5420ae:/SL/Helper/Csv.pm diff --git a/SL/Helper/Csv.pm b/SL/Helper/Csv.pm index c4a8aefa2..88e61cb63 100644 --- a/SL/Helper/Csv.pm +++ b/SL/Helper/Csv.pm @@ -77,7 +77,7 @@ sub get_objects { croak 'must parse first' unless $self->_parsed; $self->_make_objects unless $self->_objects; - return wantarray ? @{ $self->_objects } : $self->_objects; + return $self->_objects; } sub errors { @@ -360,7 +360,7 @@ SL::Helper::Csv - take care of csv file uploads my $status = $csv->parse; my $hrefs = $csv->get_data; - my @objects = $csv->get_objects; + my $objects = $csv->get_objects; my @errors = $csv->errors; @@ -421,7 +421,7 @@ Do the actual work. Will return true ($self actually) if success, undef if not. 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