If you don't want to set of quotes, don't place two sets of quotes.
But what if $value actually did contain quotes? You need to convert the contents of $value into an HTML attribute
sub text_to_html_value { my ($s) = @_; $s =~ s/&/&/g; $s =~ s/"/"/g; return qq{"$s"}; } my $q_value = text_to_html_value($value); print qq{<input type="text" name="product" value=$q_value size="10">};
In reply to Re: issue with double quotes
by ikegami
in thread issue with double quotes
by prafull
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |