in reply to Object method in wrong namespace

maybe try

my ($class, $blog, $vars) = @_;

instead of

> my ($class, $blog, $vars);

:)

edit

PS: shouldn't

return $self->{'heading'};

rather be

return $self->{vars}{'heading'};

?

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^2: Object method in wrong namespace
by Bod (Parson) on Feb 28, 2022 at 23:39 UTC
    my ($class, $blog, $vars) = @_;

    Like I said...something worthy of kicking myself!!!
    Kicking done!

    Thank you...

      > Like I said...something worthy of kicking myself!!!

      I can't say this never happened to me, too! 🤷🏽

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery