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.

In reply to diagnostics.pm on osx by larrysch

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.