CPANPLUS-YACSmoke
view release on metacpan or search on metacpan
lib/CPANPLUS/YACSmoke/IniFiles.pm view on Meta::CPAN
# peek at the next char
$nextchar = <$fh>;
if ($nextchar eq "\x0a") {
$self->{line_ends} .= "\x0a";
} else {
seek $fh, -1, 1;
}
}
}
# If there's a UTF BOM (Byte-Order-Mark) in the first
# character of the first line then remove it before processing
# (http://www.unicode.org/unicode/faq/utf_bom.html#22)
s/^//;
return $_;
} else {
local $/=$self->{line_ends};
return scalar <$fh>;
}
}
( run in 1.208 second using v1.01-cache-2.11-cpan-f29a10751f0 )