in reply to readline must affect/apply in Perl <STDIN>
It's considered polite to inform about crossposting, so that people not attending both sites don't waste their efforts solving a problem already solved at the other end of the internets.