Click here to get back home

Forward variables to cgi script

 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
Forward variables to cgi script Chad 05-29-2006
Get Chitika Premium
Posted by Mumia W. on May 30, 2006, 11:40 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
How to construct new variables in a script from other variables and strings. May 12, 2006, 4:51 am
forward to another URL March 26, 2008, 2:38 am
how to forward an array to another cgi? February 6, 2007, 11:40 pm
Perl and sendmail alias/forward file March 6, 2006, 5:31 pm
Scan forward n lines from specified file offset November 5, 2006, 2:33 pm
Using Variables from Another Script April 3, 2006, 3:22 pm
Passing variables into another script May 21, 2007, 5:17 am
How can I access the variables in my script ($main::var) March 7, 2007, 4:46 pm
Finding unused variables in a Perl script March 16, 2006, 7:37 am
Howto share variables among script & module April 3, 2006, 10:40 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap