in reply to Re^2: Moose 'clone' Constructor
in thread Moose 'clone' Constructor
And, as expected, this didn't work:
but this does
perl -E 'my $x = sub { say "@_" }; &$x("fred")'
as to "XYZ"->$x("fred"), I would not have expected it to work, becuase "XYZ" is not blessed to anything, but seeing that it does, it behaves like i expected, with $thing->method($arg) calling &method as method($thing,$arg)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Moose 'clone' Constructor
by kcott (Archbishop) on Jul 05, 2018 at 07:34 UTC | |
by Athanasius (Archbishop) on Jul 06, 2018 at 09:44 UTC | |
by kcott (Archbishop) on Jul 06, 2018 at 11:09 UTC | |
by Athanasius (Archbishop) on Jul 06, 2018 at 13:16 UTC | |
by kcott (Archbishop) on Jul 07, 2018 at 03:09 UTC |