Click here to get back home

labels not displayed when using win32::MsgBox on WIN XP

 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
labels not displayed when using win32::MsgBox on WIN XP hurluberlu 12-17-2004
Get Chitika Premium
Posted by hurluberlu on December 17, 2004, 2:07 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

Posted by A. Sinan Unur on December 17, 2004, 4:02 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
Labels not displayed when using Win32::MsgBox, more information provided December 20, 2004, 12:50 am
Solution to touble of Win32::MSGBOX December 20, 2004, 7:06 am
automatically closing Msgbox October 12, 2004, 1:04 am
Using unreferenced labels November 10, 2008, 4:35 pm
Why My XML can't be displayed January 27, 2005, 3:55 pm
Page can not be displayed... December 17, 2004, 11:18 pm
Page can not be displayed... December 18, 2004, 4:26 am
Page can not be displayed... December 19, 2004, 12:13 pm
Page can not be displayed... December 19, 2004, 1:02 pm
Page can not be displayed... December 19, 2004, 10:12 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap