Click here to get back home

use of CSS in CGI generated docs, Impossible ?

 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
use of CSS in CGI generated docs, Impossible ? navid.boarder 11-14-2005
Get Chitika Premium
Posted by Gunnar Hjalmarsson on November 16, 2005, 2:03 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
Making the simple impossible and the impossible unthinkable... June 26, 2006, 12:45 am
Doing the Impossible? :: Is there anyway to access custom .Net DLLs from within Perl December 7, 2007, 11:05 am
Lexical reference to an anonymous recursive subroutine: impossible? April 19, 2007, 1:07 pm
Perl generated navigation menu May 14, 2005, 2:17 am
mailto tag in html generated with perl August 8, 2006, 6:37 pm
an exe (generated by pp) then using ShellExecute to catch the error October 8, 2007, 4:20 pm
open a file generated dynamically March 16, 2008, 6:57 am
Strategy about browser cache and generated pages January 15, 2006, 9:09 pm
MIME::Parser: How do I get a list of the generated filenames? June 10, 2006, 4:35 pm
cant display generated html in browser (perl script) March 3, 2005, 11: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