Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^15: How to completely destroy class attributes with Test::Most?

by jcb (Parson)
on Aug 29, 2019 at 01:34 UTC ( [id://11105212]=note: print w/replies, xml ) Need Help??


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; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11105212]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-26 06:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found