in reply to Can't open perl script

What OS? Sounds like the upgrade placed perl in a different location.

-derby

Replies are listed 'Best First'.
Re^2: Can't open perl script
by Anonymous Monk on May 14, 2007 at 13:02 UTC
    AIX 5.2 I checked the path , permissions etc. which perl shows perl in /usr/bin/perl which the script points to. I had to modify PERL5LIB variable some other scripts work. But few scripts seem to work only by adding perl in the front. Since there are lot of scripts . The same script works perfectly on another box with the same environment.

      Hmmm ... what's your shebang line look like? Is it pointing to /usr/bin/perl? Make sure it doesn't have any odd characters at the end. (Who was promoting perl^M be in /usr/bin - that was silly but maybe your old system had it?)

      -derby
        yeah shebang is pointing to /usr/bin/perl. no ^M or other funny characters in the file