NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
The thing is... (Score:1)
And thus, "sudo cpan" is probably far more common than the alternative.
Reply to This
Re: (Score:1)
Personally I always use 'dh-make-perl --cpan --build' followed by 'sudo dpkg -i' and I'd recommend it as the default way for installing modules, but of course that's platform-restrictive...
Re: (Score:1)
"sudo cpan" is simple and easy, and thus the most common method.
We should make the best ways EASIER, not harder.
Re: (Score:1)
Re: (Score:2)
Re: (Score:2)
Oh, you'd be surprised. Sometimes you're given little choice. Installing Perl modules on "secure" servers with extremely limited network access is awfully entertaining.
Re: (Score:2)
DON'T SUDO CPAN! (Score:2)
o conf make_install_make_command 'sudo make'
o conf mbuild_install_build_command 'sudo
That makes the CPAN shell do the safe thing. Normal first-time configuration these days asks if you'd like to do that, but ONLY if you're not root. If you are root it should probably advise you restart as a non-root user.
Re: (Score:1)
If cpan really shouldn't be run as root, then CPAN should refuse to run as root if sudo is available.
Re: (Score:2)