If I recall, it's possible to create a glob that no longer lives in the package symbol table. If that's the case, a treewalk won't be sufficient. Even if it's not possible, you'll
be stucking doing a full symbol table walk, which can't be cheap except for trivially small programs.
-- Randal L. Schwartz, Perl hacker