[Gllug] Perl Developer Vacancy

Richard Huxton dev at archonet.com
Wed Jan 14 13:40:31 UTC 2009


Daniel P. Berrange wrote:
> Not had much opportunity to write new Perl apps recently, so just maintain
> my existing years old code which happens to use Class::methodMaker. Would
> try Moose if doin something new.

It is exceptionally nice once you start exploring beyond the basics.

I wanted to add command-line options and a config-file to a little tool
I was using. Hmm - wonder if cpan's got anything?


package Foo::Bar;

use Moose;
with 'MooseX::SimpleConfig';
with 'MooseX::Getopt';

...

my $fb = Foo::Bar->new_with_options();

That's it. Two roles and 13 characters added and I can supply settings
on the command-line or via --configfile.


Reminds me of when I started using Perl.

-- 
  Richard Huxton
  Archonet Ltd
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list