Click here to get back home

Win32::Service Questions

 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
Win32::Service Questions google 06-27-2005
Posted by google on June 27, 2005, 12:31 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

Posted by A. Sinan Unur on June 27, 2005, 11:43 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
Win32::Service Determining which services are set to start automatically July 12, 2004, 9:06 pm
Permissions to Run StartService/StopService from Web Interface? (Win32::Service) September 14, 2005, 9:00 am
PID of Service December 19, 2007, 9:07 am
Running as a Service September 14, 2004, 12:43 pm
SMS in Perl using a Web service December 19, 2005, 8:33 pm
service name package June 23, 2006, 8:19 am
Using HTTPS with LWP::UserAgent = Bad Service March 30, 2005, 6:45 am
any tricks to sending XML to .NET web service? January 19, 2006, 6:01 pm
global variables in a web service June 28, 2006, 6:44 pm
I need a subdomain service like kickme.to May 30, 2007, 3:19 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap