|Subject:||suggest namespace immediate children|
|Date:||Sun, 30 Sep 2012 10:53:29 +1000|
|To:||bug-Module-Util [...] rt.cpan.org|
|From:||Kevin Ryde <user42 [...] zip.com.au>|
I've wanted in a couple of places to find only the immediate children of a namespace. So find("Foo") would give "Foo::Bar" but not descend to "Foo::Bar::Subpart" etc. As an idea for a feature, perhaps a variation on find_in_namespace() could look only for such one-level sub-names. I wouldn't want the given "Foo" included in the return, the same as it's not included in find_in_namespace(). Dunno what a good function name might be. find_submodules("Foo",@inc) perhaps, if that suggested one-level rather than whole namespace ... -- Restaurant jargon elucidated for the layman: "Special" -- almost gone off so has to be sold today.