Help for this page

Select Code to Download


  1. or download this
    my $code = sub {print "Sub 1\n"};
    $code = joincoderefs( $code, sub {print "Sub 2\n"});
    ...
        my @refs = @_;
        return sub { $_->() for @refs };
    }
    
  2. or download this
    Sub 1
    Sub 2