2008年7月24日木曜日

Active Perlで改行コードがLFのファイルを出力する

WindowsのActive Perlで\nを出力すると、CR+LFが出力されてしまいますが、場合によってはLFのみを出力したい場合もあります。
その簡単な方法です。

open OUT, ">foo.txt";
などの次に、
binmode (OUT);
という1行を入れるだけで、\nがLFとして出力されるようになります。

1 件のコメント:

  1. But if the sport doesn't need you to go on, it'll choose a higher quantity should you say low and a decrease quantity should you say excessive. They ARE usually programmed to streak deliberately as a result of|as a outcome of} it is the one method they may give out large jackpots. They put aside a share of their take, and when the "rave bank" is full, they start dishonest in your favor to pay it back fast. Every 온라인카지노 spin is taken into account a brand-new spin, with an end result of any attainable image combination. Over-under bets, also called whole bets, are a wager that the factors whole for a recreation shall be larger or smaller than a sportsbook predicts.

    返信削除