メニュー

関連ページリンク

トップ > _common > _common - 人気ブログ(Blog)検索結果詳細 (2008年12月2日 4時)

Shikaをcpanに上げた事によるperl hackerの反応

* ○bra welcomes Shika to the Moose family

#mooseの方のログはまったく読んでない。

01:24 < Yapp○> It thinks compatiblity to be acceptable if it satisfies it with the performance in HTTP::Engine.

01:24 < ○bra> ok

01:24 < ○bra> That sounds sane

とかそんなかんぢ


参考文献

http://7go.biz/translation/

作者:yappo

更新日:2008年12月2日 1時35分

このブログのホーム

vivify

use strict;
use Data::Dumper;
my $x = {};
warn Dumper($x);
warn "ng" unless $x->{foo};
warn Dumper($x);
$VAR1 = {};
ng at ./v.pl line 5.
$VAR1 = {};

作者:yappo

更新日:2008年12月1日 17時11分

このブログのホーム

Moose の or な isa すると coerce が ぼん

なんだこりゃ

{
    package Foo;
    use Moose;
    use Moose::Util::TypeConstraints;

    coerce 'HashRef'
        => from 'Str'
            => via { warn "aaa"; return +{ $_ => $_ } };

    has 'uri'      => (is => 'rw', isa => ' Str | HashRef ', coerce  => 1);
}

my $f = Foo->new( uri => 'http://example.com/' );
warn $f->uri;
aaa at ./m.pl line 8.
HASH(0x97c0e4) at ./m.pl line 14.

作者:yappo

更新日:2008年11月30日 17時6分

このブログのホーム

トリビア

ここ10年のうちに山手線で全2階建ての電車がぐるぐるまわったことがある。

作者:yappo

更新日:2008年11月29日 10時55分

このブログのホーム

shibuya.pm

家に帰るまでがshibuya.pmです。

北区報告をするまでがshibuya.pmです。

という事で北区。

寝る、。

作者:yappo

更新日:2008年11月28日 6時12分

このブログのホーム

Shikaをcpanに上げた事によるperl hackerの反応

* ○bra welcomes Shika to the Moose family

#mooseの方のログはまったく読んでない。

01:24 < Yapp○> It thinks compatiblity to be acceptable if it satisfies it with the performance in HTTP::Engine.

01:24 < ○bra> ok

01:24 < ○bra> That sounds sane

とかそんなかんぢ


参考文献

http://7go.biz/translation/

作者:yappo

更新日:2008年12月1日 16時35分

このブログのホーム

vivify

use strict;
use Data::Dumper;
my $x = {};
warn Dumper($x);
warn "ng" unless $x->{foo};
warn Dumper($x);
$VAR1 = {};
ng at ./v.pl line 5.
$VAR1 = {};

作者:yappo

更新日:2008年12月1日 8時11分

このブログのホーム

Moose の or な isa すると coerce が ぼん

なんだこりゃ

{
    package Foo;
    use Moose;
    use Moose::Util::TypeConstraints;

    coerce 'HashRef'
        => from 'Str'
            => via { warn "aaa"; return +{ $_ => $_ } };

    has 'uri'      => (is => 'rw', isa => ' Str | HashRef ', coerce  => 1);
}

my $f = Foo->new( uri => 'http://example.com/' );
warn $f->uri;
aaa at ./m.pl line 8.
HASH(0x97c0e4) at ./m.pl line 14.

作者:yappo

更新日:2008年11月30日 8時6分

このブログのホーム

トリビア

ここ10年のうちに山手線で全2階建ての電車がぐるぐるまわったことがある。

作者:yappo

更新日:2008年11月29日 1時55分

このブログのホーム

shibuya.pm

家に帰るまでがshibuya.pmです。

北区報告をするまでがshibuya.pmです。

という事で北区。

寝る、。

作者:yappo

更新日:2008年11月27日 21時12分

このブログのホーム