Click here to get back home

How to generate a process chart from Perl code ?

 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
How to generate a process chart from Perl code ? Yohan N Leder 06-07-2007
Posted by Yohan N Leder on June 7, 2007, 12:16 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 Yohan N Leder on June 7, 2007, 12:36 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
How to create chart in perl using Spreadsheet::WriteExcel December 13, 2007, 5:07 pm
pie chart November 15, 2005, 7:04 pm
Problem with Name of Excel Chart September 22, 2005, 9:21 am
win32::OLE and SeriesCollection on a chart July 5, 2007, 7:46 pm
simple bar chart module December 14, 2007, 9:50 am
floating bar in the line chart April 21, 2008, 1:13 am
GD::Graph - Can it create a stock chart October 7, 2004, 10:42 am
Create Excel chart from spreadsheet on Un*x? December 28, 2006, 11:28 pm
Suggest a good Chart (link/bar) drawing module December 13, 2005, 8:07 am
Perl CGI does not generate file. January 13, 2005, 2: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