Perfect. I actually tried
perltoot first, but got horribly confused by constructs like
my $class = ref($self) || $self;. Thanks to your explanation, I now understand that, too. I also see from trying the suggestion in
Re^3: Code from perlboot not working as expected how to get a reference to the name, another point that was causing me confusion.
Thanks and regards,
John Davies