Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. Learn more about Collectives
Perlは「プログラム書こう」て動機のハードルが低いのがいいです。 ただ、掲示板くらいになるとそれなりの書き方を決めないと死にます。 perlでpopen (open FD "コマンド|"って書くけど)とかするときに、fflushしたくなることがある。 perlにfflushは無いらしいので、$|って変数に1をセットしてバッファリングをしない設定をする。 $|=1; print "hoge"; これで、printの後に一々flushしてくれるようになります。 ランダムな文字列を生成。chr()はアスキーコードから文字を返します。ord()は文字列の先頭1ビットの文字コードを返します。 sub rand_str(){ $s = ""; foreach(0..10){ $s .= chr(rand()*26 + ord('a')); } return $s; } Makefileの全てのターゲ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く