Hi Folks,

I am posting here after reading doing perldoc -f use. Now perl is a case-sensitive language.

Recently, I have had trouble loading a bunch of classes that lead me to investigate into how useworked and found out that it's basically a requirefollowed by an import that happens at compile time. Nothing fancy.

However, this threw my socks off:

$perl use IO::Socket; print "Hello" . "\n"; Hello

So far so good; but now changing the case of the .pm module file:

$perl use IO::socket; print "Hello" . "\n"; Hello

I did not expect the second part to work!!

Followed by:

$perldoc -l IO::Socket; /usr/local/ActivePerl-5.10/lib/IO/Socket.pm $perldoc -l IO::socket; /usr/local/ActivePerl-5.10/lib/IO/socket.pm
$ls -l /usr/local/ActivePerl-5.10/lib/IO/ total 216 drwxr-xr-x 13 root admin 442 Sep 24 15:51 Compress -r--r--r-- 1 root admin 5372 Aug 24 17:00 Dir.pm -r--r--r-- 1 root admin 4907 Aug 24 17:00 File.pm -r--r--r-- 1 root admin 16421 Aug 24 17:00 Handle.pm -r--r--r-- 1 root admin 5473 Aug 24 17:00 Pipe.pm -r--r--r-- 1 root admin 4554 Aug 24 17:00 Poll.pm -r--r--r-- 1 root admin 2935 Aug 24 17:00 Seekable.pm -r--r--r-- 1 root admin 8021 Aug 24 17:00 Select.pm drwxr-xr-x 4 root admin 136 Sep 24 15:51 Socket -r--r--r-- 1 root admin 13572 Sep 24 17:06 Socket.pm -r--r--r-- 1 root admin 11461 Dec 5 2005 String.pm drwxr-xr-x 11 root admin 374 Sep 24 15:51 Uncompress -r--r--r-- 1 root admin 15015 Jul 14 17:30 Zlib.pm

Thank You Fellas!!


In reply to use seems to be case INSENSITIVE!! by MarkovChain

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.