On Wed, 2006-10-11 at 16:45 +0400, Mazhar wrote: > I have created the file in Windows and have pasted the entries in HP-UNIX (i > mean copied). I cannot find the command dos2unix in HP UX. >
easy check, change command line to this: #!/usr/bin/perl -w to strip the carriage returns try something like this: tr -d '\r' < perl.pl > perl.pl.new or for a simple perl way of doing it. (Untested, reasonably sure it is right) #!/usr/bin/perl -w while( <> ) { s/\r//; print; } -- Ken Foskey FOSS developer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>