title: How do I dynamically discover packages from a partial namespace in perl?
body: <p>I have a directory structure that looks like:</p>
  
  <p>Foo::Bar::Baz::1
  Foo::Bar::Baz::2 etc</p>
  
  <p>Can I list the packages from something like:</p>
  
  <p><code>use Foo::Bar::Baz;</code></p>
  
  <p>Thanks!</p>
  
  <p>Edit: Made it more clear what the modules are.</p>