Home > Archive > PERL Beginners > August 2007 > ASCII::Plot::Scatter namespace
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
ASCII::Plot::Scatter namespace
|
|
| Inventor 2007-07-30, 7:00 pm |
| Hi, and thanks for all the help so far. I have prepared an ASCII
plotting module for CPAN submission and I would like your opinion on
the namespace. PAUSE tells me I should ask the community if my
namespace is chosen properly. I would like to call it
ASCII::Plot::Scatter because it is an ASCII scatter plot generator,
and I imagine making other types of plots with ASCII as well as other
ASCII modules such as ASCII::Art or somesuch thing.
I searched on CPAN and didn't find any ASCII:: modules, so I think the
namespace is available. So what do you think of the name?
Also, I know how to name a module, but how do I create the hierarchy
with the :: characters? I don't want to have a filename with :: in
it, so I figure there must be some inheritance thing involved, but I
haven't run across it in my readings.
Thanks in advance.
Inventor
| |
| Paul Lalli 2007-07-30, 7:00 pm |
| On Jul 30, 1:06 pm, Inventor...@comcast.net (Inventor) wrote:
> Also, I know how to name a module, but how do I create the hierarchy
> with the :: characters? I don't want to have a filename with :: in
> it, so I figure there must be some inheritance thing involved, but I
> haven't run across it in my readings.
You need to read:
perldoc perlmod
and
perldoc perlnewmod
before you start doing anything else. Perl module naming has nothing
whatsoever to do with inheritance.
A module named Foo::Bar::Baz ....
1) is in the package Foo::Bar::Baz
2) is in the file Foo/Bar/Baz.pm
It has NOTHING to do with the module or package Foo, nor with the
module or package Foo::Bar.
Paul Lalli
| |
| usenet@DavidFilmer.com 2007-07-30, 7:00 pm |
| Inventor wrote:
> I would like to call it ASCII::Plot::Scatter because it is an ASCII
> scatter plot generator,
I don't know what that is, but most people strongly associate ASCII (a
character encoding) with Text. Could the module fit under
Text::Plot::Scatter?
> how do I create the hierarchy with the :: characters?
The :: represents a subdirectory, ie:
{some @INC dir}/ASCII/Text/Scatter
--
The best way to get a good answer is to ask a good question.
David Filmer (http://DavidFilmer.com)
| |
| Inventor 2007-07-30, 9:59 pm |
| On Jul 30, 3:50 pm, mri...@gmail.com (Paul Lalli) wrote:
>
> You need to read:
> perldoc perlmod
> and
> perldoc perlnewmod
>
> before you start doing anything else.
> Paul Lalli
I knew someone was going to tell me RTFM! I will do that immediately,
thanks.
Inventor
| |
| Inventor 2007-08-02, 7:00 pm |
| On Jul 30, 3:36 pm, use...@DavidFilmer.com wrote:
> Inventor wrote:
>
> I don't know what that is, but most people strongly associate ASCII (a
> character encoding) with Text. Could the module fit under
> Text::Plot::Scatter?
>
> The best way to get a good answer is to ask a good question.
> David Filmer (http://DavidFilmer.com)
Aha! I searched Text::Graph and found a family of modules into which
mine would fit nicely, so I guess it is Text::Graph::Scatter. Thanks
for the clue!
|
|
|
|
|