Skip to content →

Print Perl Path

I was having issues with one of my Perl programs and needed to look at the path. To do so, you can print your Perl path like:
perl -e “print qq(@INC)”

Or if you want to print your path of a running program to the log:
warn “path=” . qq(@INC) . “nn”

Published in Code