Click here to get back home

perl call winrunner , it is too slowly....

 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
perl call winrunner , it is too slowly.... guo liyu 10-21-2004
Get Chitika Premium
Posted by guo liyu on October 21, 2004, 12:27 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

Posted by D. Marxsen on October 21, 2004, 9:55 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
Does recursive call able to print in same page as main call July 1, 2006, 7:32 am
Call tree for perl? November 30, 2004, 2:12 pm
CGI System Call in perl February 16, 2005, 6:06 am
COM+ component call with Perl April 14, 2005, 2:02 pm
how to use POST to call cgi from Perl May 2, 2005, 7:07 pm
Call Perl in Verilog or SV? January 10, 2007, 9:38 pm
PERL Skipping a Call to a Sub. August 14, 2007, 8:58 am
"getgrent" call in kernel 2.6.x /perl 5.8.3 ? September 17, 2004, 7:09 pm
Perl regex function call May 8, 2006, 11:12 am
Re: How do you Call a Perl subroutine with a variable name? January 14, 2007, 12:04 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap