Commits

Shlomi Fish  committed 439fd5f

Changed the API.

  • Participants
  • Parent commits f55c3c3

Comments (0)

Files changed (2)

File File-FindLines/module/lib/File/FindLines.pm

         {
             input => { code => sub { return scalar <$fh>; }, },
             filter => sub {
-                my ($self, $record_obj) = @_;
+                my ($self, $args) = @_;
+
+                my $record_obj = $args->{record};
+
                 return $record_obj->text_like($re);
             }, 
         }

File File-FindLines/module/t/Find-FileLines.t

         {
             input => { code => sub { return shift(@lines); } },
             filter => sub {
-                my ($self, $record_obj) = @_;
+                my ($self, $args) = @_;
+                
+                my $record_obj = $args->{record};
+
                 return $record_obj->text_like(qr/foob.r/);
             },
         }