Fixing Legacy Perl Functions With Decorators
Fixing Legacy Perl Functions With Decorators Function decorators give us a way to modify a function’s behaviour without changing its source. This is useful in changing the behaviour of complex or legacy functions that you don’t want to touch. Although perl does not have a built-in syntax for creating or using decorators, typeglob manipulations are […]
Read Full Post | Make a Comment ( Comments Off on Fixing Legacy Perl Functions With Decorators )How to use the debugger with Moose
How to use the debugger with Moose By Ovid 2013-10-25 I use the Perl debugger quite a bit. I also write a lot of Moose code and that’s when I invariably hit code you get when you use Moose and it makes debugging much harder than it needs to be.
Read Full Post | Make a Comment ( Comments Off on How to use the debugger with Moose )Interesting Perl Modules
Bash::Completion::Plugins::perlbrew Bash completion for perlbrew. See also Bash::Completion namespace::sweep This pragma was written to address some problems with the excellent namespace::autoclean. In particular, namespace::autoclean will remove special symbols that are installed by overload, so you can’t use namespace::autoclean on objects that overload Perl operators.
Read Full Post | Make a Comment ( None so far )Use a single module and get Moose plus several MooseX extensions
See Ovid’s answer
Read Full Post | Make a Comment ( None so far )Moose tips
init_arg – use alternate attribute name in new() # in package Foo has qw(bar is ro init_arg quux); … # elsewhere my $foo = Foo->new( quux => 1 ); Foo has an attribute named “bar”, but we pass “quux” to the constructor. See Moose::Manual::Attributes / Constructor parameters (init_arg) init_arg – ban setting an attribute in […]
Read Full Post | Make a Comment ( None so far )