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 (Sage)
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1030175]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2022-09-24 15:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (114 votes). Check out past polls.

    Notices?