Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は次のperlメイソンコードを持っています:
% my $var = "San Diego"; <input type="text" value=<% $var %> disabled />
ただし、これを行うと、テキストフィールドの値は最初の単語にのみ設定されます。したがって、この場合は「San」に設定されます。どうすればこれを修正できますか?
値を二重引用符で囲むようにしてください
<input type="text" value="<% $concertCity %>" disabled />