in reply to Re^3: Building a CPAN module with User Inputs
in thread Building a CPAN module with User Inputs

So, if module X needs a configuration file, any program that uses X should have build in a dialog with the user to build the configuration file? Of course, that would require the program to run with priviledges to install system wide defaults - a priviledge which usually is there by the time 'make install' is run.

Installing system wide defaults make sense to do at install time, not at first run time.

  • Comment on Re^4: Building a CPAN module with User Inputs

Replies are listed 'Best First'.
Re^5: Building a CPAN module with User Inputs
by ikegami (Patriarch) on Oct 28, 2008 at 10:44 UTC

    So, if module X needs a configuration file,

    Going in circles. I don't buy the premise that the module needs a configuration in the first place. It hinders reusability. It hinders installation. It hinders configuration. And it hinders security to put a password in a world readable file.

      I don't buy the premise that the module needs a configuration in the first place.
      Quite a bold statement considering you've no idea what module the OP is writing. Besides, he may have a different opinion about that.
      And it hinders security to put a password in a world readable file.
      The OP mentioned a username and a software revision. He didn't talk about passwords. Besides, he wasn't asking about opinions on whether it's a good idea to ask for usernames. He just wanted to know how to ask the user a question during installation time. How would you have answered his question if instead of This will be part of the module installation. he had written This will be part of the module testing phase.?

        I wouldn't have. I don't have an answer for that.