Click here to get back home

I do not manage to read all the parameters since my cgi

 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
I do not manage to read all the parameters since my cgi john.swilting 03-21-2007
Posted by john.swilting on March 21, 2007, 3:41 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
manage importing modules March 23, 2006, 12:43 am
manage a web page perl May 10, 2006, 3:44 pm
perl script to manage internal address mailing lists July 28, 2004, 8:53 am
how to manage phpBB, windows 2003 server and FreeBSD user accounts simultaneously. November 29, 2004, 9:18 pm
Is there a web interface tool that can manage accounts of FreeBSD and Windows 2003 server simultaneously January 5, 2005, 6:55 pm
sub in a package with parameters May 12, 2005, 11:07 am
array parameters October 24, 2004, 11:40 am
Re: remembering parameters April 7, 2008, 6:00 pm
perl script with parameters (using xml) November 8, 2004, 10:10 pm
how *.cgi file can get the parameters from client? November 20, 2004, 8:08 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap