In Unix, the person has to do two things

1./   On the very first line of the file, he/she has to insert the location
of his/her
PERL interpreter (the location of the PERL interpreter can be found with
"which PERL").

For example;

redhat1:/home/(38)% which perl
/opt/local/bin/perl                           <---------- system's response

So, in my case, I will insert

#!/opt/local/bin/perl

On the first line of the file.


2./  Remove ^M from the end of every line.
This could be done by running "dos2unix" on the file, or by simply using
"search and replace"
in a Unix-based editor.  I normally use vi, and then in command mode enter:

:1,$s/^M//

where ^M is created by pressing Ctrl-v followed by Ctrl-m (v and m are
lower case letters).




__________________

William Ampeh (x3939)
Federal Reserve Board

__________________

William Ampeh (x3939)
Federal Reserve Board


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to