Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by Jenda (Abbot)
on Apr 23, 2013 at 11:41 UTC ( #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? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2022-08-17 18:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?