Click here to get back home

Re: PERL and Active DIrectory

 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
Re: PERL and Active DIrectory QoS 07-02-2007
Get Chitika Premium
Posted by QoS on July 2, 2007, 9:47 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
perl with Active Directory November 2, 2005, 4:14 am
PERL and Active DIrectory June 28, 2007, 3:25 pm
PERL can't open file for logging (world writable directory Windows XP Home/ Active Perl / Apache) November 8, 2006, 5:50 pm
Active Directory login User November 17, 2004, 11:23 pm
Active State Perl July 26, 2005, 7:41 pm
Active Perl: XP dll corrupted? August 1, 2005, 9:59 am
where to get Active perl modules September 1, 2005, 11:44 pm
problem with old version of (Active) Perl March 29, 2005, 3:56 pm
Active Perl Package Installation June 7, 2006, 1:53 pm
most active perl discussion forum May 28, 2007, 9:49 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap