Exploring Type::Tiny

Posted on July 31, 2018. Filed under: Uncategorized | Tags: , , , , , , , , , , , , , , , , , |

Type::Tiny is probably best known as a way of having Moose-like type constraints in Moo, but it can be used for so much more. This is a series of posts showing other things you can use Type::Tiny for. A seven part series posted to blogs.perl.org and perlmonks Using Type::Params for Validating Function Parameters — perl.org […]

Read Full Post | Make a Comment ( Comments Off on Exploring Type::Tiny )

Fixing Legacy Perl Functions With Decorators

Posted on October 21, 2017. Filed under: Uncategorized | Tags: , , , , , , , |

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 )

Perl Advent Calendar 2016

Posted on December 5, 2016. Filed under: Uncategorized | Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , |

Perl Advent Calendar 2016 Graphing Moose Classes Automatically – Meta::Grapher::Moose Jingle Refs, Jingle Refs, Jingle all the way – Ref::Util Benchmarking with Bencher – Bencher Yuletide Logging – Log::Any Gathering all the Presents – List::Gather Help Santa Klaus Reward Only Nice Children -Schedule::LongSteps Writing git hooks – Git::Hooks Geocoding the world at volume with open […]

Read Full Post | Make a Comment ( Comments Off on Perl Advent Calendar 2016 )

How to use the debugger with Moose

Posted on October 25, 2013. Filed under: Uncategorized | Tags: , , , |

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

Posted on February 11, 2013. Filed under: Uncategorized | Tags: , , , |

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 )

Dependency Injection with Moose

Posted on May 25, 2012. Filed under: Uncategorized | Tags: , |

2012-05-24 by Jack

Read Full Post | Make a Comment ( None so far )

Use a single module and get Moose plus several MooseX extensions

Posted on April 23, 2012. Filed under: Uncategorized | Tags: , |

See Ovid’s answer

Read Full Post | Make a Comment ( None so far )

Moose tips

Posted on September 13, 2011. Filed under: Uncategorized | Tags: , , , , |

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 )

On Encapsulation

Posted on August 30, 2011. Filed under: Uncategorized | Tags: , , , |

by chromatic on 2011-03-15

Read Full Post | Make a Comment ( None so far )

Liked it here?
Why not try sites on the blogroll...