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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |