I had the occasion to look at the source of Net::HTTP::Methods (to debug a nasty, intermittent read timeout, but that's a different story), and I saw that it defines itself like this:
my $self = bless Symbol::gensym(), $class;
And then it has to access its attributes like this:
${*$self}{'http_buf'} = "";
What is the point of this? Does this technique have any advantages over the usual blessed hashref?
In reply to glob objects - why? by kikuchiyo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |