On 20/01/2012 13:51, Shawn H Corey wrote:
On 12-01-19 11:08 PM, Andrey P wrote:I don't understand why I need to use a list assignment forsay scalar(()=<$fh>); but not for say scalar(grep /./,<$fh>);These are not the same. Try this instead: say scalar( grep /^/, <$fh> );
Or even simply say scalar grep 1, <$fh>; Rob -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/