in reply to Loading $_ as checkbox value when $_ has double quotes in its value
s/"/"/g; s/'/'/g; print qq|<input type="checkbox" name="box$post_number" value="$_">|;
This works for both double as well as single quotes.
update: Err, no. It will render normally. Since ' and " are simply entities browsers should render (as form values and as text), so dws' example where he assigns $_ to another variable isn't necessary at all.
[ ar0n -- want job (boston) ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (ar0n) Re: Loading $_ as checkbox value when $_ has double quotes in its value
by jerrygarciuh (Curate) on Dec 04, 2001 at 11:29 UTC | |
by dws (Chancellor) on Dec 04, 2001 at 11:33 UTC | |
by hakkr (Chaplain) on Dec 04, 2001 at 15:59 UTC |