[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Omaha.pm] Fwd: ref to a ref? circular refs?



On Feb 22, 2007, at 6:13 AM, Daniel Linder wrote:
Oh sure, this happens *ALL* the time in the Government::Accountability
module.  You'd be surprised how many times the entire function of
variables is just to point back to another module.

I would think that most modules would have critical work to do...

sub do_x {
   my ($self) = @_;
   $self->spin(@_);
   $self->use_for_political_gain(@_);
   $self->fundraise_by_exploiting_x(@_);
   $self->congratulate;
   $self->delegate_x(@_);
   $self->contradict;
   $self->golf;
   return "vote for $self!";
}

With a pure reference to a reference valuable opportunities would be missed. :)

j