in reply to RE: RE: Re: Case insensitivity in a hash... Futile effort?
in thread Case insensitivity in a hash... Futile effort?

I hate sounding ignorant, but once I know what I'm doing I promise to answer questions rather than just ask them.

How do I add something to @INC. All my books are at work and I'm trying to get this done.

Your humble servant,
-Chuck
  • Comment on RE: RE: RE: Re: Case insensitivity in a hash... Futile effort?

Replies are listed 'Best First'.
RE: RE: RE: RE: Re: Case insensitivity in a hash... Futile effort?
by btrott (Parson) on Apr 19, 2000 at 07:06 UTC
    There are several ways. But here's the easiest:
    use lib '/foo/bar';
    Adds the path '/foo/bar' to your @INC so it'll be searched. So, for your purposes, if you had installed Tie::CaseInsensitive (or Tie::RecursiveCI, japhy's code, which you should use because then you don't have to retie each level) in '/home/foo/bar/Tie/RecursiveCI.pm', you'd put
    use lib '/home/foo/bar';
    at the top of your code.