On Jul 18, 2012, at 6:29 PM, Shawn H Corey wrote: > On 12-07-18 07:12 PM, John M. Gamble wrote: >> which uses sudo to install the module > > The point is that sudo should _never_ be used inside any module or script. > Ever! > -- > Just my 0.00000002 million dollars worth, > Shawn
That's fine to point out, but I can't find any indication 'sudo' is being used specifically within Const::Fast beyond the INSTALL file (see below); within cpanm is possibly another matter, but take that up with Miyagawa, not Leon (also, it installs with cpanm fine w/o sudo for me). I'm not sure where this is sneaking in but it's not from Const::Fast, unless there is a non-obvious switch being used... [cjfields@pyrimidine-laptop Const-Fast-0.011]$ ack 'sudo' . [cjfields@pyrimidine-laptop Const-Fast-0.011]$ grep -r 'sudo' . ./INSTALL:"-S" flag to cpanm, which uses sudo to install the module: ./INSTALL: % sudo make install ... [cjfields@pyrimidine-laptop ~]$ cpanm Const::Fast --> Working on Const::Fast Fetching http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/Const-Fast-0.011.tar.gz ... OK Configuring Const-Fast-0.011 ... OK Building and testing Const-Fast-0.011 ... OK Successfully installed Const-Fast-0.011 1 distribution installed chris