in reply to Discussing a name space

Uh, you've already uploaded those to CPAN (Text::Statistics::)?!

I took a peek at the latin one. It isn't a module in the common sense. Modules provide tools programs and other modules can use. Your module is actually an entire program that's useless outside of the example script in the documentation. A prime example is the module's claim that the program has ended. I'm suprised you didn't hardcode the source of the input as well.

Replies are listed 'Best First'.
Re^2: Discussing a name space
by fernandes (Monk) on Sep 11, 2007 at 15:53 UTC
    It can be used by programs and other modules, and can be used outside of the example script too. For example, you can have a program (or module used for a program) that cleans every tag from HTML files, deliver it to Text::Statistics, and processes the CSV output for obtaining some other data.
    And "hardcode the source of the input" appears to me senseless in this context. See modules for NLP, disambiguation, WordNet, parsing, and other linguistic stuff. Many of them work on files and generate files as output.
      I beg to differ. It can't because your function sends "fim de programa" (among other things) to STDOUT, even when it's not true. Your "module" assumes the script is there to serve it, while it should be the other way around.
        Ok, now I got. Thank you for commenting. I will fix some of that.
        Almost all messages for humans can be suppressed!