Pankaj,
You
say that when you develop them on the UNIX machine they run fine but when you
developed them on a Windows machine and save them to the UNIX machine they don't
run. The problem might be the difference between Windows and UNIX new line
characters. If you open a file developed on Windows in vi on the UNIX
machine and it says [dos] at the bottom that might cause this
problem.
I'm
not sure if there is an easier way to fix it than this but what I have done in
the past is to open the script and read each line performing a chop twice to
remove the two "invisible" characters that make up the DOS new line and then
write it to a new file with a "\n" on the end.
Matt Schneider
|
- [Perl-unix-users] Perl script on Apache Unix server Pankaj Kapare
- [PMX:#] RE: [Perl-unix-users] Perl script on Apache U... James Schappet
- RE: [Perl-unix-users] Perl script on Apache Unix serv... Martin Vernooij
- Re: [Perl-unix-users] Perl script on Apache Unix serv... Matt Schneider
- Re: [Perl-unix-users] Perl script on Apache Unix ... $Bill Luebkert
- Re: [Perl-unix-users] Perl script on Apache Unix serv... Andy_Bach
- Re: [Perl-unix-users] Perl script on Apache Unix ... $Bill Luebkert