Subject: | scripts/cpan-mirrors hard-codes brian's home directory |
Running cpan-mirrors tool results in an error complaining on missing /Users/brian path:
$ cpan-mirrors --help
The file [/Users/brian/.cpan/sources/MIRRORED.BY] was not found at /opt/rh/rh-perl520/root/usr/bin/cpan-mirrors line 10.
It's not good idea to put down author's names into a script for public use:
#!/usr/bin/perl
use strict;
use warnings;
use CPAN::Mirrors;
use Data::Dumper;
my $mirrored_by_file = '/Users/brian/.cpan/sources/MIRRORED.BY';
my $mirrors = CPAN::Mirrors->new( $mirrored_by_file );