#!/usr/bin/perl -- BEGIN { package My::App; BEGIN { $INC{'My/App.pm'} = __FILE__; } use Moose; with 'MooseX::Getopt::GLD'; has 'out' => (is => 'rw', isa => 'Str', required => 1, doc => "yo", ); has 'in' => (is => 'rw', isa => 'Str', required => 1, doc => "yo ho", ); } #!/usr/bin/perl -- use My::App; my $app = My::App->new_with_options();