How is it a fatal error? It's effectively a semi-static variable, but I don't see any error checking code.
I would have expected something like croak( 'Cannot call constructor on instance' ) if blessed( $class );, but all I see is mixing a lexical declaration with a postfix conditional, which usually isn't the right thing.
In reply to Re^3: An Object Structural Design Pattern in Perl
by chromatic
in thread An Object Structural Design Pattern in Perl
by hypochrismutreefuzz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |