[m-dev.] for review: enhancements to mtags script

Andrew Bromage bromage at cs.mu.OZ.AU
Mon Jul 6 16:55:39 AEST 1998


G'day all.

David Matthew Overton wrote:

> This is the first time I've used Perl, so if anyone knows of ways that
> things could be done better, I'd appreciate comments.

There Is More Than One Way To Do It(tm). :-)

Just one question (and bear in mind here, you might not be the
best person to answer it).

Quite a few times, there appears this construction:

> +		    $_ = <srcfile>;
> +		    chop;
> +		    $body = $_;

Wouldn't it be simpler (and cleaner) to use this?

	$body = <srcfile>;
	chop $body;

Cheers,
Andrew Bromage



More information about the developers mailing list