in reply to Usuage of CPAN's Text::Delimited

You need to add the directory that contains Text/Delimited.pm to @INC. That's not /user/comp/name. I suspect it's /user/comp/name/lib, so

use lib "/user/comp/name/lib";

By the way, I prefer the saner

perl Makefile.PL PREFIX=/some/dir LIB=/some/dir/lib/perl5

Nowadays, the above can be shortened to:

perl Makefile.PL INSTALL_BASE=/some/dir

Specifically, I use

perl Makefile.PL INSTALL_BASE=~

Update: Added suggestion for Makefile.PL args.

Replies are listed 'Best First'.
Re^2: Usuage of CPAN's Text::Delimited
by Ratna_Ranjan (Novice) on Nov 16, 2009 at 23:52 UTC

    I tried both the ways,its gives me the same error.

    use lib "/user/comp/name/lib/site_perl/5.8.8/Text";# This is the path +to the Text/Delimited.pm use lib "/user/comp/name/lib";

    perl Makefile.PL PREFIX=/some/dir LIB=/some/dir/lib/perl5
    In this PREFIX is the local directory path where i want to install the module(which would give me the lib and man folders)

    so does LIB has the path to the LIB folder of the perl? is this correct??

      I believe your first 'use lib' went one directory too far. Try:
      use lib "/user/comp/name/lib/site_perl/5.8.8;
      When you 'use Text::Delimited;', 'Text' is searched for in @INC, then Delimited.pm in 'Text'. Since there is no "/user/comp/name/lib/site_perl/5.8.8/Text/Text", Delimited.pm wasn't found.

      use lib "/user/comp/name/lib/site_perl/5.8.8/Text";# This is the path to the Text/Delimited.pm.

      No, that's the path to Delimited.pm. You want the path to Text/Delimiated.pm. Get rid of that trailing Text