deep recursion on anonymous subroutine

[prev] [thread] [next] [Date index for 2005/04/07]

From: Simon Wistow
Subject: deep recursion on anonymous subroutine
Date: 15:58 on 07 Apr 2005
I have 3 classes Version Maintainer and User

	Uploader->has_a( version  => "Version" );
	Uploader->has_a( uploader => "User"   );


which means I can do

	$version->uploader->uploader->name;

But, obviously I'd prefer to be doing $version->uploader->name;

However, doing 

	Version->might_have(uploader => "Uploader" => qw/uploader/);


produces this error

  Deep recursion on anonymous subroutine at 
 /software/perl/5.6.1/linux/lib/site_perl/5.6.1/Class/DBI/Relationship/MightHave.pm 
 line 58.

Sorry for being so pesky at the moment, I'm switching back and forth 
between C++ and Perl at the moment and my Class::DBI-mojo (what little 
there was) has been severely damaged.

Simon

deep recursion on anonymous subroutine
Simon Wistow 15:58 on 07 Apr 2005

Re: deep recursion on anonymous subroutine
Perrin Harkins 16:15 on 07 Apr 2005

Re: deep recursion on anonymous subroutine
Tony Bowden 16:52 on 07 Apr 2005

Generated at 06:54 on 17 May 2005 by mariachi v0.52