Click here to get back home

variable number of arguments to bind_columns

 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
variable number of arguments to bind_columns alexxx.magni@gmail.com 12-05-2007
Get Chitika Premium
Posted by alexxx.magni@gmail.com on December 5, 2007, 7:58 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

Similar ThreadsPosted
Matching a variable number of bytes April 13, 2006, 1:31 pm
Simplify Variable Number of Regex Groups June 14, 2007, 11:14 pm
getting arguments July 28, 2007, 4:01 pm
MASON getting arguments. June 21, 2007, 4:05 pm
passing arguments to subroutines August 28, 2004, 11:08 pm
passing arguments from template November 14, 2004, 3:48 am
passing array arguments May 19, 2005, 9:36 am
Parsing function arguments June 23, 2005, 10:07 pm
Command-Line Arguments November 12, 2005, 6:09 pm
Arguments not passed in Windows XP June 6, 2006, 2:59 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap