Click here to get back home

AWLP turns your PC into web-managed wireless access gateway

 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
AWLP turns your PC into web-managed wireless access gateway Alp 01-04-2005
Get Chitika Premium
Posted by Alp on January 4, 2005, 3:51 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
Ciscotutorials.info is your gateway to the best October 10, 2007, 4:02 am
Selecting Default Gateway April 18, 2008, 1:45 pm
Secure VPN Gateway - a Perl solution January 2, 2007, 7:31 pm
http://search.cpan.org/ getting 502 Bad Gateway error September 18, 2005, 1:50 pm
www.hetong168.com Chinese biggest contract website first A2A gateway October 17, 2005, 11:02 pm
(the simplest question of the century ?) Simple access to ... ACCESS! April 12, 2005, 7:58 pm
求 : XDA mini 原廠中文機 換 XDA O2 IIs Wireless 英文機 .................................. March 3, 2005, 7:15 pm
Re: Script to disconnect Linksys WRT54G wireless router on Windows November 20, 2007, 2:01 pm
Trying to access DB September 5, 2007, 7:34 am
FAQ: Perl on the Net: FTP and WWW Access October 11, 2004, 11:10 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap