Click here to get back home

symbol table question

 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
symbol table question Richard Trahan 06-07-2005
Get Chitika Premium
Posted by Brian McCauley on June 8, 2005, 7: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

Similar ThreadsPosted
DBI and symbol table August 20, 2005, 3:12 pm
Symbol Table and References June 13, 2006, 10:34 am
Is there a symbol table for special vars? June 22, 2005, 2:25 pm
Undefined subroutine even though it appears in symbol table? January 27, 2007, 10:58 am
Formatting a single line without effecting the entire table with the Text::Table module March 10, 2005, 11:18 am
Problems with table position in a PDF using PDF::Table December 3, 2008, 4:32 pm
Can't locate Symbol.pm in @INC August 22, 2005, 10:26 am
Symbol tables August 23, 2005, 8:41 am
Help: undefined symbol: strlcpy January 17, 2008, 9:28 am
Does Perl 5.8.0 contain symbol Perl_sv_2pv? July 14, 2008, 10:52 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap