Click here to get back home

How do I show status for XMLin (XML::Simple)

 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 do I show status for XMLin (XML::Simple) Rossz 06-23-2005
Posted by Rossz on June 23, 2005, 5:34 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
Problem with XMLin data structure. January 15, 2007, 4:24 pm
XMLout() output causes "not well-formed (invalid token)" in XMLin() September 21, 2004, 6:51 pm
I use TK to show some chinese web page, I get nothing,why? November 25, 2006, 9:00 pm
chenga script to show one houer more September 19, 2005, 2:19 pm
show hidden value in variable.. with mysql April 19, 2006, 6:11 pm
How to make image that show some web page? August 12, 2006, 9:52 am
how to show the number of the correct asnwer November 13, 2006, 5:05 pm
Re: how to show the fragment of element from array ? September 25, 2007, 6:41 am
how to show the fragment of element from array ? September 25, 2007, 3:33 am
Slide show: this should be fairly straightforward - a what language to use question August 24, 2004, 8:15 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap