open IN, "<&", $ARGV[0] or die $!; binmode IN; while(defined($_ = )) { print "line $_"; } close IN;