in reply to Re^14: How to completely destroy class attributes with Test::Most?
in thread How to completely destroy class attributes with Test::Most?
With the "bundle" model and a slight modification, that last loop becomes:
foreach my $data ($fp->bundle_parseable_files->all->get_data) { # do something with each $data }
The AUTOLOAD in File::Collector::Iterator::All is slightly different:
sub AUTOLOAD { our $AUTOLOAD; my $self = shift; my @result = (); if (defined wantarray) { push @result, $$self->$AUTOLOAD(@_) while ($$self->next_file) +} else { $$self->$AUTOLOAD(@_) while ($$self->next_file) } return wantarray ? @result : \@result; }
|
|---|