> lets say i made a module called cjb::string.  where would i put
> cjb/string.pm?  i'm using fedora core 1 and the default perl
installation. 
> i've read in my book about modules and a little bit about them on
> perldoc.com, but i couldn't find the answer to this.
> 
> thanks.
> 

Generally lower case module names are reserved for pragmata, with all
upper case reserved for internals provided by the Perl distro, so you
might want to consider CJB::String or the like.  Additionally, I would
be extra careful with a module name as basic as 'String'.

Specifically to your question, you can place them anywhere that is
included in Perl's @INC, which is updateable at compile time with the
'lib' pragma,

perldoc lib
perldoc FindBin (for a useful tool, when messing with @INC)

And for more on writing your own modules, check out,

perldoc perlmodstyle

Excellent tips in there. Of course there is also the Learning Perl Objs,
Refs, and Mods from O'Reilly.

HTH,

http://danconia.org


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to