[フレーム]
Last Updated: February 25, 2016
·
1.314K
· ksi

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.

AltStyle によって変換されたページ (->オリジナル) /