Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: RFC: Simulating Ruby's "yield" and "blocks" in Perl

by Jenda (Abbot)
on Apr 23, 2013 at 11:41 UTC ( [id://1030113] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub search {
      my $wanted = shift;
    ...
      }
    }
    # I don't care about the File::Find ... how do you pass the block to a
    +nother subroutine/method?
    
  2. or download this
    sub walk_tree {
      my ($self, $branch_handler, $leaf_handler) = @_;
    ...
       }
      }
    }