Click here to get back home

postscript and charting/graphing

 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
postscript and charting/graphing Larry Martell 02-13-2006
Get Chitika Premium
Posted by Larry Martell on February 13, 2006, 8: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

Posted by DJ Stunks on February 13, 2006, 10:55 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
help for PostScript::Simple March 15, 2007, 10:39 am
Generating postscript file November 4, 2004, 6:52 pm
Converting perldoc to postscript February 9, 2007, 12:24 pm
pretty print to postscript (or pdf or tex) for both code and pod November 26, 2006, 6:55 pm
Postscript-Wizzards? How to set the background for each letter? January 16, 2007, 1:08 pm
newpage problem with PostScript::Simple March 22, 2007, 6:05 am
print file information from postscript headers November 9, 2005, 8:07 am
Printing a postscript file with Win32::Printer June 29, 2006, 9:29 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap