On Tue, Jun 11, 2019 at 7:22 AM Dave Mitchell <davem@iabyn.com> wrote: > I'm not sure I follow. "$foo" calls '""' overloading, not '.': Sorry, my example had one too few arguments: alh@hyrule:~$ perl use overload '""' => sub { print "STRFY($_[0][0])\n"; $_[0][0] }, '.' => sub { print "CONCAT$_[0][0], $_[1][0])\n"; bless [ $_[0][0] . $_[1][0] ] } ; my $s = bless [ "foo" ]; my $t = "$s $s"; CONCATfoo, ) CONCATfoo, foo) -- Matthew Horsfall (alH)Thread Previous | Thread Next