[EMAIL PROTECTED] wrote:
On unix, in vi:
:1,$s/<ctrl-V><enter>//
will delete all the dos '\r' line endings. That's Ctrl-V to get special char mode, <Enter> which ends up looking (here, anyway) like Ctrl-M. For perl:
http://www.perlmonks.org/index.pl?node_id=36555
or (same page, only faster ;-):
http://perlmonks.thepen.com/36555.html
I believe, though, apache, and perl etc will not have a problem reading scripts w/ the 'wrong' ending.
Perl will defintely fail on UNIX if there is a \r on the shebang line. The rest of the file doesn't matter to Perl.
-- ,-/- __ _ _ $Bill Luebkert ICQ=162126130 (_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED] / ) /--< o // // http://dbecoll.tripod.com/ (Free site for Perl) -/-' /___/_<_</_</_ Castle of Medieval Myth & Magic http://www.todbe.com/ _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
