Click here to get back home

%USERACL Is Empty?!

 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
%USERACL Is Empty?! William 12-09-2005
Get Chitika Premium
Posted by William on December 9, 2005, 1:12 pm
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
empty fields September 24, 2006, 6:18 am
empty array? April 11, 2008, 11:48 am
How to create an empty file? April 10, 2005, 3:50 am
variable with empty space August 22, 2006, 2:20 pm
Archive::Zip - end up with empty file ... October 4, 2006, 11:37 am
Should an empty regex match everything October 8, 2007, 1:03 am
Testing on empty variable February 9, 2008, 2:39 pm
empty first element after split July 11, 2008, 11:14 am
empty "if" statement - it doesn't look nice, does it? August 11, 2008, 5:19 am
removing empty split() fields October 1, 2004, 5:54 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap