MarkovChain has asked for the wisdom of the Perl Monks concerning the following question:
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!!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: use seems to be case INSENSITIVE!!
by rcaputo (Chaplain) on Oct 12, 2009 at 19:14 UTC | |
by MarkovChain (Sexton) on Oct 12, 2009 at 19:42 UTC | |
by ikegami (Patriarch) on Oct 12, 2009 at 19:50 UTC | |
by markkawika (Monk) on Oct 13, 2009 at 00:39 UTC | |
|
Re: use seems to be case INSENSITIVE!!
by ikegami (Patriarch) on Oct 12, 2009 at 19:52 UTC | |
|
Re: use seems to be case INSENSITIVE!!
by bobr (Monk) on Oct 12, 2009 at 19:13 UTC | |
|
Re: use seems to be case INSENSITIVE!!
by lamprecht (Friar) on Oct 12, 2009 at 19:05 UTC | |
by MarkovChain (Sexton) on Oct 12, 2009 at 19:37 UTC | |
by Bloodnok (Vicar) on Oct 12, 2009 at 22:17 UTC | |
|
Re: use seems to be case INSENSITIVE!!
by linuxer (Curate) on Oct 12, 2009 at 19:02 UTC |