Revision 8269a977
Von Sven Schöling vor etwa 10 Jahren hinzugefügt
SL/Helper/Csv.pm | ||
---|---|---|
77 | 77 |
croak 'must parse first' unless $self->_parsed; |
78 | 78 |
|
79 | 79 |
$self->_make_objects unless $self->_objects; |
80 |
return wantarray ? @{ $self->_objects } : $self->_objects;
|
|
80 |
return $self->_objects; |
|
81 | 81 |
} |
82 | 82 |
|
83 | 83 |
sub errors { |
... | ... | |
360 | 360 |
|
361 | 361 |
my $status = $csv->parse; |
362 | 362 |
my $hrefs = $csv->get_data; |
363 |
my @objects = $csv->get_objects;
|
|
363 |
my $objects = $csv->get_objects;
|
|
364 | 364 |
|
365 | 365 |
my @errors = $csv->errors; |
366 | 366 |
|
... | ... | |
421 | 421 |
|
422 | 422 |
Parse the data into objects and return those. |
423 | 423 |
|
424 |
This method will return list or arrayref depending on context.
|
|
424 |
This method will return an arrayref of all objects.
|
|
425 | 425 |
|
426 | 426 |
=item C<get_data> |
427 | 427 |
|
Auch abrufbar als: Unified diff
Csv: wantarray syntax entfernt.