Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Specializing Functions with Currying

by stvn (Monsignor)
on Aug 06, 2004 at 16:30 UTC ( #380621=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub build_para
    {
        return $handlers{'para'}->(join "" => map { $handlers{$_->[0]}->($
    +_->[1]) } @{$_[0]});
    }
    
  2. or download this
    my @test_data_2 = ( 'para', [
        ['none', 'The quick brown '],
    ...
    }
    
    print build_HTML(@test_data_2);
    
  3. or download this
    *build_para = curry(\&build_HTML, 'para');
    print build_para(\@test_data);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://380621]
help
Chatterbox?
[MidLifeXis]: Has anyone been successful running prove under Windows with a --jobs parameter? It appears, even with (what appears to be) appropriately- configured parameters and up to date Test::Harness/TAP ::Harness that tests are still running serially.

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2016-12-06 17:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (112 votes). Check out past polls.