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に指示することは可能ですか?
文字列が非常に長いため、フォーマット上の理由で改行が必要です。
例えば
print "hello world"
与えるもの
hello world
ではなく
文字列を連結します
print "hello" . "world";
print1つの大きな文字列の代わりに、複数の文字列を渡すことができます。
print
print "hello", "world";
もちろん、いじり回しておらず、$,実際に使用していると仮定しますprint。
$,
1. 連結の使用
「こんにちは」を印刷します。"世界";
2. print 関数に複数の引数を渡す
print ("こんにちは", "世界");
codepadで試してみてください。