Check location of / edit installed perl module
Add the function to your bash-profile:
function perlwhere {
lib=${1//::/\/}
file=$(perl -e "use $1; printf(\"%s\n\", \$INC{'$lib.pm'} )";)
echo $file;
}
and run
perlwhere List::Util
Smarter:
Add the function to your bash-profile:
function perledit {
file=$(perlwhere $1)
if [ -n "$file" ]; then
subl "$file"
fi
}
And run
perledit List::Util
to read / edit the file right in place.
Written by Karsten Silkenbäumer
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Perl
Authors
janosgyerik
25.11K
Jean-Remy Duboc
12.22K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#