On 12-01-19 11:08 PM, Andrey P wrote:
I don't understand why I need to use a list assignment for
say scalar(()=<$fh>);
but not for
say scalar(grep /./,<$fh>);
These are not the same. Try this instead:
say scalar( grep /^/, <$fh> );
--
Just my 0.00000002 million dollars worth,
Shawn
Programming is as much about organization and communication
as it is about coding.
Never give up your dreams. Give up your goals, plans,
strategy, tactics, and anything that's not working but never
give up your dreams.
http://www.youtube.com/watch?v=cM5A1K6TxxM
"Never, never, never give up."
Winston Churchill
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/