- or download this
my @test_data = (
['none', 'The quick brown '],
...
['bold', 'dog'],
['none', '.']
);
- or download this
my %handlers = (
'none' => sub {shift},
...
return $handlers{'para'}->($text);
}
- or download this
sub wrap_with_html
{
...
'ital' => \&wrap_with_html('i',
'para' => \&wrap_with_html('p',
);
- or download this
sub curry
{
...
my $plus_five = &curry(\&foo, 5);
&$plus_five(3);
- or download this
sub curry
{
...
);
print &build_para(\@test_data);