in reply to Re: Perl Inheritance Not Working as Expected
in thread Perl Inheritance Not Working as Expected
This error is just too easy to make. I used to use h2xs but it creates so much stuff that I avoid using it. I was at a Perl conference where one of the Stonehenge presenters used a 'new' tool to create classes but I forgot what it was.
h2xs -AXn Goo Defaulting to backwards compatibility with perl 5.40.1 If you intend this module to be compatible with earlier perl versions, + please specify a minimum perl version with the -b option. Writing Goo/lib/Goo.pm Writing Goo/Makefile.PL Writing Goo/README Writing Goo/t/Goo.t Writing Goo/Changes Writing Goo/MANIFEST joel@PLANTER1 goo]$
This does not create a 'new' boilerplate for you...
... our $VERSION = '0.01'; # Preloaded methods go here. ...
Other stuff but no 'new'. A new() method in the preferred fashion would be good, no?
Celebrate Intellectual Diversity
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl Inheritance Not Working as Expected
by hippo (Archbishop) on Apr 29, 2026 at 08:46 UTC | |
|
Re^3: Perl Inheritance Not Working as Expected
by bliako (Abbot) on Apr 29, 2026 at 09:21 UTC |