http://www.perlmonks.org?node_id=668370


in reply to Reference assessment techniques and how they fail

Enjoyable article but you underestimate the freedom perl gives you to shoot yourself (or innocent bystanders) in the foot;-). You can, with some effort, declare methods in Package 0.

use strict; use warnings; use 5.010_000; my $package_0 = bless {}, '0'; { no strict qw(refs); *{'0::hello'} = sub { say 'Hello World!'; }; } say ref $package_0; $package_0->hello(); __END__ 0 Hello World!