'Generate loaded (*) Perl packages recursively, starting from
the given blob.
This yields the following 2-tuples:
(<blob>, <set of packages defined in this blob>)
A "loaded" Perl package is one that is imported (via "use" or
"require") or locally defined via a "package" statement.
If a particular Perl module cannot be imported it is presumed to
define one package of the same name (which is typical). In this
case, <blob> will be None.'

def gen_loaded_pkgs(self):

    for item in self._item_cache:
        (yield item)
    for item in self._generator:
        (yield item)
