CC: | rich [...] blekko.com |
Subject: | Bug in handling GLOBs |
Date: | Mon, 12 May 2008 15:39:56 -0700 |
To: | bug-Devel-Cycle [...] rt.cpan.org |
From: | Greg Lindahl <greg [...] blekko.com> |
Devel::Cycle doesn't handle type GLOB. In fact it gives an obscure
error when you hand it something with a GLOB:
Undefined subroutine &Devel::Cycle::_find_cycle_ called at <blahblah>/Cycle.pm line 106.
This is because _get_type only handles ( SCALAR REF ARRAY HASH CODE ),
and anything else will fall though, which causes _find_cycle_dispatch
to give this obscure error.
So GLOB (and perhaps LVALUE?) are not handled properly. And the error
handling is not quite right.
This is Devel-Cycle 1.09 (the latest) on perl 5.8.8 on x86-64.
-- greg