in reply to Re^5: Is there a wantobject like wantarray?
in thread Is there a wantobject like wantarray?
I don’t know but I’d be very surprised if it did. This is not my forté, more my piano (see! I am funny), but this seems to support the notion; both dumps being the same–
use 5.012; use Devel::Peek; package Bingo { use Moo; use overload '""' => sub { +shift->ohai }; has ohai => is => "rw"; }; my $bingo = Bingo->new( ohai => "DER" ); Dump $bingo; say "\n$bingo\n"; Dump $bingo;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Is there a wantobject like wantarray?
by LanX (Saint) on Sep 26, 2014 at 10:36 UTC |