in reply to Perl Inheritance Not Working as Expected
If you check the new in the FakeTuple it's using the one arg'd version of bless which as noted in the documentation for same isn't inheritable. The constructor should be using the package used to call it and the two arg bless $ref, $class form.
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Inheritance Not Working as Expected
by InfiniteSilence (Curate) on Apr 28, 2026 at 19:49 UTC | |
by bliako (Abbot) on Apr 29, 2026 at 09:21 UTC | |
by hippo (Archbishop) on Apr 29, 2026 at 08:46 UTC |