Monday, March 30, 2009

a great time saver in thick subs

sub ... {
    my $coderef = sub { 
        function body ...
    };

    ...

    $coderef->(args);
}

No comments:

Post a Comment