hi drieux

i had a look on you snippet of code. very neat, i didnt know =cut :))). however, im 
not happy with the regexing solution, since i cant get it to work:

$scalar =~ s/\015\012?|\012/\n/g;

what is this ^M anywat? carrige return?

reading the perldoc -f chomp doesnt tell me if chomp deals with ^M ?

actually im interested in how eval deals with ^M, since i suspect my problems is a 
misinterpretation by eval with regards to  ^M...

anyway im not sure if i can chomp incomming stuff from a CGI submit ?


any help will be appreciated

:0)

martin

On Mon, May 27, 2002 at 08:17:30AM -0700, drieux wrote:
> 
> On Monday, May 27, 2002, at 07:31 , Martin A. Hansen wrote:
> 
> >
> >my nice cgi forms works beautiful under konq on linux. but the windows 
> >machine generates ^M at the and of lines? this makes eval go fubar? how 
> >can i prevent this???
> 
> http://www.wetware.com/drieux/pbl/RegEx/eolOut.txt
> 
> may help you get the differences in chomp v. RegExing them to
> a common standard..... Remember that the browsers will do as
> they will do - and you have to work around that reality....
> 
> ciao
> drieux
> 
> ---

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to