Perl find location of a library

By Eric Downing. Filed in Perl  |  
TOP del.icio.us digg

If you are not sure of the location of where a library is being included from in Perl you can use the following command:

perl -MXML::SAX -le 'print $INC{"XML/SAX.pm"}'

This search is for the XML::SAX library and it displays the location of the SAX.pm file.

Leave a Reply