rakudo-p5 / v5

v5.pm for rakudo
24 stars 8 forks source link

`<>` automatically chomps variables. #7

Open KamilaBorowska opened 10 years ago

KamilaBorowska commented 10 years ago

Simple code like the following doesn't work, because <> chomps the variable. Perl 5 doesn't automatically chomp when reading.

use v5.10;
print while $_ = <>;