RE: Seemingly simple???

2003-12-10 Thread Arms, Mike
Try the Linux command: dos2unix -- Mike Arms -Original Message- From: Maraglia, Dominicx [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 11:07 AM To: [EMAIL PROTECTED] Subject: Seemingly simple??? Hello, I have a small problem, which at first seems simple, but

RE: Seemingly simple???

2003-12-10 Thread Wagner, David --- Senior Programmer Analyst --- WGO
[EMAIL PROTECTED] wrote: Subject: Seemingly simple??? Hello, I have a small problem, which at first seems simple, but has proven to be a bit of a hair puller. A collegue and I are importing some windows formatted ascii files (onto our linux systems) and extracting certain string

RE: Seemingly simple???

2003-12-10 Thread Andy_Bach
Perl uses the line ending appropriate for the platform \r\n for dos \n for *nix and translates the print hey\n appropriately. You can do: $var =~ s/\r//; to remove the ^M but you probably want to look into setting the var $/ and use chomp. perldoc -f chomp chomp This safer version of