Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Devel::Declare is deprecated, what’s instead? (Keyword::Simple)by LanX (Saint) |
on Aug 02, 2018 at 20:45 UTC ( [id://1219734]=note: print w/replies, xml ) | Need Help?? |
> x $foo, sub {} I don't really understand what you are trying to achieve, but if Function::Parameters is an option, it's based on Keyword::Simple from the same author, which facilitates the use of Pluggable keywords a lot. Be warned that keywords need >5.12 and only expand at the start of a statement (like after a semicolon). otherwise we could have a real syntactic macro (i.e. Lisp like) mechanism in Perl.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|