The Perl Toolchain Summit 2025 Needs You: You can help 🙏 Learn more
12345678910111213141516171819202122232425 package Rope::Pro;my (%PRO);BEGIN { %PRO = ( keyword => sub { my ($caller, $method, $cb) = @_; no strict 'refs'; *{"${caller}::${method}"} = $cb; } );}sub new { shift; return ( %PRO, @_ );}1;__END__
package
Rope::Pro;
my
(
%PRO
);
BEGIN {
= (
keyword
=>
sub
{
$caller
,
$method
$cb
) =
@_
;
no
strict
'refs'
*{
"${caller}::${method}"
} =
}
new {
shift
return
1;
__END__