Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by LanX (Saint)
on Apr 23, 2013 at 15:41 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-03-29 14:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found