# Parent
package Parent;
use Moose;
has 'foo' => ( is => 'rw', isa => 'Int' );
no Moose;
# Child
package Child;
use Moose;
extends 'Parent';
with 'Role';
no Moose;
package Parent;
use Moose;
has 'foo' => ( is => 'rw', isa => 'Int' );
around 'new' => sub {
my ($next, $class, @args) = @_;
# なんかごにょごにょ・・・
return $next->($class, @args);
};
no Moose;
package MyApp;
use Moose;
with 'MooseX::Getopt';
with 'MooseX::ConfigFromFile';
# 引数の設定・・・
no Moose;
sub get_config_from_file {
my ($self, $file) = @_;
# ファイルから読み込む・・・
return \%config;
}
syntax on
hi Comment ctermfg=yellow cterm=none
hi Constant ctermfg=green cterm=none
set noautoindent
set nosmartindent
set nocompatible
set nohlsearch
set showmatch
set backspace=indent,eol,start
set tabstop=4
set shiftwidth=4
set binary noeol
set t_kb=^?
set vb
fixdel
set expandtab
au BufNewFile,BufRead *.t set ft=perl
au BufNewFile,BufRead *.cgi set ft=perl
set enc=utf-8