Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by LanX (Bishop)
on Apr 23, 2013 at 15:41 UTC ( #1030175=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub search {
      my $wanted = shift;
    ...
       find($wanted, $path);
      }
    }
    
  2. or download this
    paths.each do
      |path|
      puts "Searching in %{path}"
      find(wanted, path)
    end
    
  3. or download this
     
    irb(main):006:0> wanted = "c"
    => "c"
    ...
    false
    Searching in c
    true
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1030175]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2017-12-16 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (454 votes). Check out past polls.

    Notices?