in reply to perl Module and directory structure

Module::Starter
vagrant@localhost ~ $ module-starter --module=A,A::A1,A::A2,B,B::B1,B::B2 \
                        --author=you --email=you@there.com
Added to MANIFEST: Changes
Added to MANIFEST: ignore.txt
Added to MANIFEST: lib/A.pm
Added to MANIFEST: lib/A/A1.pm
Added to MANIFEST: lib/A/A2.pm
Added to MANIFEST: lib/B.pm
Added to MANIFEST: lib/B/B1.pm
Added to MANIFEST: lib/B/B2.pm
Added to MANIFEST: Makefile.PL
Added to MANIFEST: MANIFEST
Added to MANIFEST: README
Added to MANIFEST: t/00-load.t
Added to MANIFEST: t/manifest.t
Added to MANIFEST: t/pod-coverage.t
Added to MANIFEST: t/pod.t
Added to MANIFEST: xt/boilerplate.t
Created starter directories and files
vagrant@localhost ~ $ tree A/
A/
├── Changes
├── ignore.txt
├── lib
│   ├── A
│   │   ├── A1.pm
│   │   └── A2.pm
│   ├── A.pm
│   ├── B
│   │   ├── B1.pm
│   │   └── B2.pm
│   └── B.pm
├── Makefile.PL
├── MANIFEST
├── README
├── t
│   ├── 00-load.t
│   ├── manifest.t
│   ├── pod-coverage.t
│   └── pod.t
└── xt
    └── boilerplate.t

5 directories, 16 files
  • Comment on Re: perl Module and directory structure

Replies are listed 'Best First'.
Re^2: perl Module and directory structure
by stevieb (Canon) on Mar 03, 2017 at 16:48 UTC
    module-starter --module=A,A::A1,A::A2,B,B::B1,B::B2

    I've never had the need for anything like that before from Module::Starter, but that's a handy little trick to have seen.

      Thank you! Looking back I think OP wanted more like:
      --module=B,B::B1,B::B2,B::A,B::A::A1,B::A::A2
      
      A classes are indented within the B class, but they don't share B namespace so only OP know.