I use a Mac. OS X 10.11.3 I'm trying to learn Perl. I'm taking a class and using the book Learning Perl.
I wrote a couple of programs using "strict" and "warnings". I got the expected results. I then changed "warnings" to "diagnostics". I received the following: Can't locate diagonstics.pm in @INC (you may need to install the diagonstics module) (@INC contains: /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.2 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .
So, I checked: ls /System/Library/Perl/5.18/diagnostics.pm . It is there!!
I also checked ls /System/Library/Perl/5.16/diagnostics.pm . It is there also
I don't know what is meant by @INC. But as I said, ls /System/Library/Perl/5.18 shows it to be there.
If it is useful, I can give you the result of ls /System/Library/Perl/5.18 . It is long so I've not included it.