Click here to get back home

justify text and PDF::API2 module

 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
justify text and PDF::API2 module mike 02-17-2005
Posted by mike on February 17, 2005, 2:26 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
Re: printf doesn't do right justify March 9, 2008, 8:32 am
printf doesn't do right justify March 9, 2008, 8:04 am
Documentation for PDF::API2 August 16, 2004, 11:48 am
Images and PDF::API2 January 10, 2006, 7:56 pm
Thoughts on speeding up PDF::API2 September 11, 2008, 8:11 pm
How to create Unicode PDF bookmarks using PDF::API2? January 24, 2006, 6:51 pm
contacting Alfred Reibenschuh, creator of (CPAN) PDF-API2 ? May 31, 2007, 8:18 am
Need a module for grabbing text from a web page February 18, 2005, 11:42 pm
Module for text analysis and comparison? March 23, 2008, 2:21 am
interactive text menu configuration module October 27, 2004, 12:02 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap