Click here to get back home

Re: Can I monitor the execution of a perl script

 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: Can I monitor the execution of a perl script Dr.Ruud 09-02-2006
Posted by Dr.Ruud on September 2, 2006, 8:59 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
Can I monitor the execution of a perl script September 1, 2006, 5:50 pm
Can a perl script monitor another? May 17, 2005, 2:31 pm
speeding up perl script execution under apache October 29, 2004, 5:29 pm
Problem with one perl script executing another, execution started by Apache httpd September 16, 2008, 10:39 am
How to monitor keyboard inactivity from script April 2, 2008, 12:11 pm
fork() and script execution afterwards May 31, 2007, 10:38 am
Interrupting a script during execution for user help file January 4, 2006, 3:11 pm
Script execution blocked when reading from a socket January 16, 2006, 10:03 pm
How big a part does hardware play in script execution speed? October 6, 2004, 3:23 am
Perl to monitor server stats October 13, 2004, 11:44 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap