sub _can_write { my $path = shift; mkdir ($path, 0755) unless -e $path; require Config; return 1 if -w $path and -w $Config::Config{sitelib}; print << "."; *** You are not allowed to write to the directory '$path'; the installation may fail due to insufficient permissions. . # ... #### sub _can_write { my $path = shift; mkdir ($path, 0755) unless -e $path; return 1 if -w $path; # ...