Click here to get back home

deployment of common scripts across multiple domains?

 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
deployment of common scripts across multiple domains? Rob 01-26-2005
Get Chitika Premium
Posted by Rob on January 26, 2005, 10:18 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
sharing perl scripts over domains February 2, 2005, 5:32 pm
Setting cookies across multiple domains June 4, 2006, 4:41 am
Multiple substitutions with Regexp::Common? May 15, 2007, 10:45 am
Identifying common elements from multiple hashes December 15, 2005, 2:07 pm
How to use perl to get all of a domains' nameservers. August 2, 2004, 12:35 pm
making cgi-bin dir available to other domains as an alias April 20, 2006, 7:42 am
domains, top level, collecting a list of January 29, 2008, 3:37 pm
misc: 4 Millions Domains data with Category November 1, 2004, 4:03 am
What is required for perl scripts to run correct when launched from rc scripts on HPUX 11? September 6, 2007, 4:06 am
Matching the most common June 16, 2005, 6: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