Click here to get back home

any tools to enable test automation for scripting language like perl?

 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
any tools to enable test automation for scripting language like perl? matt 10-08-2004
Posted by Eric J. Roode on October 9, 2004, 12:44 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
ANN: A new scripting language Tao 0.9.0 beta released! April 26, 2005, 9:41 am
Re ANN: A new scripting language Tao 0.9.0 beta released! April 27, 2005, 1:55 am
Re ANN: A new scripting language Tao 0.9.0 beta released! April 27, 2005, 7:49 am
Re ANN: A new scripting language Tao 0.9.0 beta released! April 27, 2005, 9:51 am
Re ANN: A new scripting language Tao 0.9.0 beta released! April 27, 2005, 12:05 pm
Re ANN: A new scripting language Tao 0.9.0 beta released! April 27, 2005, 12:31 pm
P~(ptilde) 0.9 released, new scripting language with novel regex March 14, 2008, 10:27 am
Building Hierarchical Class Tree from custom Scripting Language September 9, 2004, 10:05 pm
need to clear cookies in IE using perl Win 32 IE automation September 8, 2006, 9:56 am
Perl web automation question ref javascript:dt_pop September 9, 2004, 12:38 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap