Click here to get back home

perl programmer needed

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
perl programmer needed my-name-is 06-22-2006
Get Chitika Premium
Posted by Tad McClellan on June 22, 2006, 10:52 am
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Similar ThreadsPosted
Perl programmer needed May 18, 2005, 4:34 pm
job posting: Sr Systems Programmer needed December 13, 2006, 11:18 pm
Need perl+java programmer November 11, 2004, 9:43 am
PERL/CGI Programmer wanted October 31, 2005, 9:13 pm
PERL/CGI Programmer Wanted October 31, 2005, 9:17 pm
URGENT NEED FOR PERL PROGRAMMER October 16, 2006, 5:57 am
required perl programmer October 10, 2007, 4:27 pm
Can a Perl Programmer pick up PHP quickly August 24, 2005, 4:04 pm
Can a Perl Programmer Pick up PHP quickly? August 24, 2005, 4:07 pm
Need Perl/CGI Programmer Specializing in Shopping Carts/E-Commerce March 23, 2005, 11:55 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap