foreach (<IN>) {
  print $_;
}
と、
print <IN>;
ってメモリ消費量違ったりするんでしょうか?