http://qs321.pair.com?node_id=52017


in reply to perl oo

Because the argument list to Send::new() is more than just what you specify on the Send->new($name). More specifically, it's the name of the class being called.

Generally, "sub new" blocks should look like:

sub new { my $proto = shift; my $class = ref($proto) || $proto; my $self = {}; my @args = @_; bless ($self, $class); return $self; }