larrysch has asked for the wisdom of the Perl Monks concerning the following question:

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.

Replies are listed 'Best First'.
Re: diagnostics.pm on osx
by choroba (Cardinal) on Mar 08, 2016 at 22:50 UTC
    Check the spelling carefully!
    vv diagonstics diagnostics ^^
    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
      I'm dyslexic, but that doesn't make me feel less stupid!! Thank you very much. larry

        It can be cillhnangeg for eryoneve aacutlly. We are ilcenind to raed what we eecxpt and not waht is actulay on the the page. :P