Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: guidance on naming my first module for CPAN

by Lotus1 (Vicar)
on Jan 24, 2021 at 00:39 UTC ( #11127353=note: print w/replies, xml ) Need Help??

in reply to Re: guidance on naming my first module for CPAN
in thread guidance on naming my first module for CPAN

This is a big help, thank you!

Your answer brings up a question however. Do I need to do anything special in my package to specify the package name without the name of the pm file? In other words when I submit the folder structure in lib/ stops at QuickMemoPlus. Does that tell CPAN what the top level package is?

I'm planning to use Minilla to help me make the build file so I was hoping it would handle these things. Maybe this would be a good place to start a new thread for help with Minilla when I get stuck.


After looking through the modules in the Device namespace I noticed that they are modules used for interfacing to devices. I'm starting to think the Data namespace as others have suggested might be better. It would be nice to have the option of using the module to find the device and get the extract files directly instead of requiring the user to move them somewhere first. I'm going to wait for a few days to let it percolate before I try to upload anything.

Replies are listed 'Best First'.
Re^3: guidance on naming my first module for CPAN
by 1nickt (Abbot) on Jan 24, 2021 at 00:53 UTC

    Hi again,

    You'd have in your distribution:

    lib/ lib/Device/ lib/Device/LG/ lib/Device/LG/ lib/Device/LG/QuickMemoPlus/ lib/Device/LG/QuickMemoPlus/
    ... and your package names would start at Device:
    lib/Device/LG/ -> package Device::LG::QuickMemo lib/Device/LG/QuickMemoPlus/ -> package Device::LG::QuickMem +o::Extract

    Hope this helps!

    The way forward always starts with a minimal test.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11127353]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (1)
As of 2021-10-16 07:53 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (69 votes). Check out past polls.