Reputation: 357
I'm installing Perl module DateTime using CPAN.
perl -MCPAN -e shell
cpan> install DateTime
Following is the directory structure created under DateTime at modules directory
total 112
drwxr-xr-x 2 user group 57344 2017-02-02 15:07 Locale
-r--r--r-- 1 user group 14449 2017-01-29 13:02 Locale.pm
drwxr-xr-x 13 user group 4096 2017-02-02 15:08 TimeZone
-r--r--r-- 1 user group 28040 2016-11-23 23:01 TimeZone.pm
I don't find DateTime.pm any where within this directory structure.
Does DateTime.pm comes with any other bundle?
I couldn't find similar question in stackoverflow. Please feel free to point, if the question already exists.
Upvotes: 2
Views: 23094
Reputation: 386501
It should be installed in a path of the form
$dir_in_INC/DateTime.pm
You seem to be looking for a path of the form
$dir_in_INC/DateTime/DateTime.pm
but that would be for a module named DateTime::DateTime.
You can find out where DateTime was installed (assuming it was installed in a location in which Perl searches) using
perl -MDateTime -le'print $INC{"DateTime.pm"};'
or
perldoc -ml DateTime
Upvotes: 2