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!
In reply to Re: Reference assessment techniques and how they fail
by hipowls
in thread Reference assessment techniques and how they fail
by kyle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |