> [EMAIL PROTECTED] - Thu Jul 21 10:31:16 2005]:
> 
> While playing perlgolf I noticed a strange thing:
> 
> perl -0e "print while $_=pop||<>,/\pL/" foo
> 
> This first prints "foo" (that's okay). But then if you type "bar",
> it immediately outputs "bar". It shouldn't do so, because <> should
> read until "\0" (notice the -0 option), not until "\n".
> Just try /\w/ instead of /\pL/.

Confirmed a bug in 5.8.0.  Confirmed fixed in 5.8.6 and bleadperl.

Thank you for your bug reports but please try a newer verison of Perl
before reporting bugs.

Reply via email to