ふり返る暇なんて無いね

日々のメモ書きをつらつらと。メインブログに書くほどでもないことを流してます

2015-02-12から1日間の記事一覧

perl5.16から overloadが"overload arg '"' is invalid "みたいなwarningを吐き出した

間違い探し use strict; use warnings; use 5.14.2; package Foo { use overload '"' => sub { 'This is Foo class' }; sub new { bless +{} => shift } }; package main { # Fooクラスのインスタンスの文字列表現をとりたい my $foo = Foo->new; say $foo; …