Scott Penrose


Scott Penrose is a perl hacker with an interest in home automation. He has been playing with electronics since he was old enough to burn his fingers with a soldering iron.

The beginning - I am porting a large project (as part of a refactor) to Moose... I will keep a list of modules I use here, and possibly issues...

Daemon & Command lines

The project runs as a daemon from the command line.

Sub types

I will need to do some advanced types, we should do as much validation as possible.


Complex validation

I have two parameters - 'path' and 'script' - where 'path' is optional and has a default, and 'script' should be an executable in 'path'. But how do we check?

subtype 'script'
 => where { -x "$path/$_" };

but where to get $path...

  • Perl