Perl script Problem with Linux

Padiyath Sreekumaran Kumar.Padiyath at psi.ch
Thu Nov 25 06:47:04 UTC 2004


 

 

   Hello,

   I have a perl script which reads a configuration file. This 

   Script works on SUN as well as Tru64 to certain extend. Since I donot

   have all the input files on SUN and Tru64 the script stops. The 

   Problem on Linux is that it dies immediately in line 9 of the 

   Configuration file. Iam using Perl version 5.8 and Redhat 9.0. The

   problem is in the routine read_conf of the perl script. Iam not an

   expert on Perl. Can any one help me? Am I missing any Perl modules on 

   Linux? Thanks for your help.

 

   Iam enclosing both files: script and config file

 

   # perl -v

 

This is perl, v5.8.0 built for i386-linux-thread-multi

(with 1 registered patch, see perl -V for more detail)

 

   # uname -a

Linux pc4289 2.4.20-28.9 #1 Thu Dec 18 13:45:22 EST 2003 i686 i686 i386
GNU/Linux

 

   I know that I should have send this problem to Perl FAQ. Since I get

   error with Linux I thought that I shall ask here. Sorry for that.

 

    Error I get on Linux:

 

  # ./dnewsreport103.pl -f ./dnewsreport.103.conf

Error in ./dnewsreport.103.conf line 9: must be 'section' instead of '#'

 

Regards,

Kumar

 

 



More information about the redhat-list mailing list