in reply to
Will Perl 6 optimize away useless assignments?
It won't optimize this way, because your example is wrong. Did you test it? The first snippit reads and prints one line. The second prints all lines.
print
takes a list.
Comment on
Re: Will Perl 6 optimize away useless assignments?
In Section
Seekers of Perl Wisdom