in reply to Re^3: perl typecasting
in thread perl typecasting

TGI, I really appreciate you taking time off to review my code. Thanks..!!!

I am working on my regex skills now. I should get better at it in the coming weeks.

The variables I have not defined are globals.. sorry I should have mentioned that... Your code looks much cleaner and easier to debug than mine...!!!! Thanks a lot...!!!!!

I have got a lot of people telling me about using the modules. Can anyone give me info on how I can check this. Everytime I use this, I get this error message.

"Can't locate Regexp/Common.pm in @INC (@INC contains: /etrade/pkgs/perl/5.8.0_crm/lib/perl5 /etrade/pkgs/perl/5.8.0_crm/lib/perl5/site_perl /etrade/pkgs/perl/5.8.0_crm/lib/site_perl /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .) at dm.pl line 3."

Replies are listed 'Best First'.
Re^5: perl typecasting
by TGI (Parson) on Feb 05, 2008 at 20:25 UTC

    I see part of the problem already with the text of the error message you posted.

    Your @INC (the array of directories to search for libraries) includes libraries from three different perl installations

    1. /etrade/pkgs/perl/5.8.0_crm/
    2. /usr/perl5/5.00503/
    3. /usr/perl5/site_perl/5.005/

    It looks to me like:

    • Your PERL5LIB environment variable is wrong or at least incorrect for the perl instance you are running.
    • Your perl installs may be damaged.
    • You need to find out which perl you are using. Try which perl or whereis perl in your shell to find it.

    Check the output of perl -V.

    I recommend asking your sysadmin for help getting the perl environment straightened out.

    If that doesn't work, try starting another thread asking for help on specifically this problem. Include the output of perl -V in your post.

    You really do want to use strict and warnings. Also, diagnostics is handy when you are starting out.


    TGI says moo

Re^5: perl typecasting
by Anonymous Monk on Feb 24, 2012 at 19:31 UTC
    Thanks for giving me your company name, software versions, and directory structure. That was smart.