On May 21, 2012, at 5:31 PM, Nick Lewycky <[email protected]> wrote:
> +my \$found = 0;
> +while(<IN>) {
> + if (/$magic/) { exit \$GOOD; }
> +}
> +exit \$BAD;
> +ENDTEXT
> +close(OUT);
> +`chmod +x $scriptFile`;
> +
> +print "$prog: starting reduction\n";
> +sub multidelta {
> + my $level = shift @_;
>
> I really like that you pass -w and say "use strict;" but I'd also like if you
> used function prototypes too:
>
> sub multidelta($) {
> my ($level) = @_;
>
> and not using "shift" does a better job of indicating that you aren't
> expecting more than one item on @_
>
> Nick
Thanks. My Perl-foo is ancient from my grad school days.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits