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) . "\n\n"
If you like this post and would like to receive updates from this blog, please subscribe our feed. Subscribe via RSS

Leave a Reply