Tom Christiansen writes: : >: I expect chomp() to remove one and only one terminating instance of the : >: precise string to which $/ has been set; no more, no less. What were : >: you expecting? : : >I expect people to expect Perl to do the right thing. : : And that would be what, sniff around the stdio buffer the first time you : play with it and figure out what it smells like? Why do you say "you"? Did I say I expect Perl to do the right thing? :-) Seriously, we are entering an era when dwimmerly action on input will be a necessary evil. I could wish it were otherwise, but my supply of divine fiats is low. And I don't think anyone else has enough fiats to pull it off either. For the near future I only see a chaotic dance around the UTF-8 strange attractor, in part because a lot of butterflies are flapping their wings near the UTF-16 attractor instead. We're going to live in interesting times, whether or not that's an ancient Chinese curse. LarryThread Previous | Thread Next