Click here to get back home

Using Perl to check-out check-in in Clearcase

 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
Using Perl to check-out check-in in Clearcase mihirtr 12-22-2006
Posted by mihirtr on December 22, 2006, 2:20 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
ClearCase 05.00 using ClearCase::CtCmd::exec crash perl 5.8.3 November 23, 2004, 9:53 am
Using clearcase command in perl script December 26, 2006, 10:28 am
Re: how to use clearcase commands in perl script January 17, 2007, 11:01 am
Re: how to use clearcase commands in perl script January 18, 2007, 2:19 am
how to use clearcase commands in perl script January 17, 2007, 8:53 am
perl get crash when using ClearCase::CtCmd::exec November 17, 2004, 6:31 pm
ClearCase::CtCmd Question November 23, 2005, 1:05 pm
PERL to mean what 'perldoc perl' says is wrong? (was: Re: perl should be improved and perl6) April 14, 2008, 11:37 pm
FAQ 3.0: What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? October 31, 2004, 12:03 pm
FAQ 3.0 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? February 2, 2005, 12:03 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap