Click here to get back home

[OT] PerlTidy option to close parens on function params *only*

 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
[OT] PerlTidy option to close parens on function params *only* newsbot 05-02-2005
Posted by newsbot on May 2, 2005, 2:00 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
Perltidy option to generate/keep BSD Style of bracketing ? April 19, 2008, 4:00 pm
SFTP Close Function May 7, 2006, 8:53 pm
Close function blocks forever when reading from piped output November 27, 2007, 4:16 pm
Using Bind Params in MySQL April 21, 2005, 6:29 am
Passing particular types of params to subroutines November 23, 2005, 3:07 pm
How do I -MCPAN install and pass commandline params? March 6, 2007, 1:27 pm
Passing Post Params & Object Reference ? October 13, 2007, 11:27 pm
Re: Invoking a CGI method in external program trashes form params September 19, 2007, 10:24 pm
Invoking a CGI method in external program trashes form params September 19, 2007, 10:08 pm
close() or die December 31, 2004, 5:54 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap