Click here to get back home

examining local variables of frames up the stack

 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
examining local variables of frames up the stack badarisj 02-23-2006
Posted by badarisj on February 23, 2006, 5:40 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
Passing variables to frames February 23, 2005, 8:44 pm
local variables and global variables June 27, 2006, 8:31 am
limit eval to caller local variables May 13, 2006, 8:07 pm
Perl 6: language has "local" variables (ie "dynamic" vars)? July 31, 2004, 9:42 pm
Prolem examining JavaScript with SpiderMonkey.pm September 2, 2008, 7:03 am
frames with perl? January 25, 2005, 6:43 pm
Q: Extract AVI/MOV video frames to JPEG files ? April 14, 2005, 9:19 am
Filling the Perl Stack May 4, 2005, 5:04 pm
stack traces for warnings? March 14, 2006, 8:14 am
Is language Perl have stack, or I must write it? April 12, 2006, 2:43 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap