in reply to Passing Data using CGI
You'll also find if @LogData contains any " or <> the ouput of your print statement will be messed up.
Use map or a loop to go through your array and substitute(encode) any dodgy characters .
Use single quotes to stop variables being interpreted i.e print '$line\r\n';
As Juerd says HTML entities should be useful you might also find the quotemeta function useful.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Passing Data using CGI
by budman (Sexton) on Jan 05, 2002 at 01:05 UTC |