D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Perl: need to add path to @INC



Adrian Midgley wrote:
> I'm looking in the wrong places, obviously, how do I do that, 
> please?

This is not how to do it (although it works):

BEGIN {
       unshift(@INC,'/usr/underprivileged/me/lib');
      }
use Xbase;

This is how to do it:

use lib '/usr/underprivileged/me/lib';
use Xbase;

Now, doesn't that look nicer.

Steve

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly