Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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) = @_;
    ...
       }
      }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-19 20:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found