in reply to Re: (ar0n) Re: Loading $_ as checkbox value when $_ has double quotes in its value
in thread Loading $_ as checkbox value when $_ has double quotes in its value

Won't doing it that way screw the HTML?

In that case don't make $_ do double-duty. Instead, try

my $dequoted = $_; $dequoted =~ s/"/&quot;/g; print qq|<input type="checkbox" name="box$post_number" value="$dequote +d">|;
  • Comment on Re: Re: (ar0n) Re: Loading $_ as checkbox value when $_ has double quotes in its value
  • Download Code

Replies are listed 'Best First'.
(duplicate)Re: Loading $_ as checkbox value when $_ has double quotes in its value (delete)
by hakkr (Chaplain) on Dec 04, 2001 at 15:59 UTC

    Don't quote your output at all print "stuff";

    Use a here document instead then you can put anything you fancy in it.

    print <<HTML; Delete This Post? \n <input type=checkbox name="box$post_number" value=" $_ "<p +> $_<hr>\n<p>\n<br><br><br>\n|; HTML