Re: [Nolug] Crappy Perl Code

From: Judson Lester <jlester_at_tulane.edu>
Date: Mon, 14 Jul 2003 12:51:43 -0500
Message-Id: <D48CD4E8-B623-11D7-9442-0003937ABD66@tulane.edu>

On Sunday, July 13, 2003, at 11:30 PM, Ron Johnson wrote:

> On Sun, 2003-07-13 at 00:56, Mark A. Hershberger wrote:
>> Alex McKenzie <alex@boxchain.com> writes:
> [snip]
>
> Thus, the "stat _" will operate on $file2 instead of the desired
> $file1. If this is done in a long, complicated program originally
> written by a "clever but not good" programmer, it may take a long
> time analyzing the program just to make sure a small change does
> not introduce a possibly serious bug.
>

That's what I've always felt. _ and $_ are essentially global
variables, and there's only the two of them. It's especially tricky to
use them across a function call.

___________________
Nolug mailing list
nolug@nolug.org
Received on 07/14/03

This archive was generated by hypermail 2.2.0 : 12/19/08 EST