On Sun, 07 Dec 2003 12:20:46 -0700 "Michael J. Golini" <[EMAIL PROTECTED]> wrote:
> I have tried to strip the carriage return of the last field > > $field[8] =~ s/\015//g; You have to know how your original data was created. In Windows, each line is terminated by "\r\n" (carriage return followed by line feed). In Unix, lines end only in "\n". On old Mac systems, lines end only in"\r". You might want to look at it in a hex editor. Perl's record separator is $/ You can use this for portable programming. Unix is ASCII \012 Windows is ASCII \015\012 Mac is ASCII \015 chomp could be the way to go. See perldoc chomp -- Owen -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>