princepawn has asked for the wisdom of the Perl Monks concerning the following question:
This involves a useless assignment and could be optimized to :{ my $name = <STDIN>; print $name; }
because the my variable was not offered life outside this scope.{ print <STDIN>; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 1: Will Perl 6 optimize away useless assignments?
by tilly (Archbishop) on Sep 03, 2001 at 23:31 UTC | |
|
Re: Will Perl 6 optimize away useless assignments?
by chromatic (Archbishop) on Sep 03, 2001 at 22:23 UTC | |
|
Re: Will Perl 6 optimize away useless assignments?
by stefp (Vicar) on Sep 03, 2001 at 20:48 UTC | |
|
Re: Will Perl 6 optimize away useless assignments?
by RhetTbull (Curate) on Sep 03, 2001 at 21:01 UTC |