in reply to STDIN behaves different according to context
This problem isn't being caused by your code. Your code works just fine. The problem must be caused by some external factor.
--"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|