[Pdx-pm] $#ARGV

David E. Wheeler david at kineticode.com
Tue Sep 19 11:26:28 PDT 2006


On Sep 19, 2006, at 11:07, Thomas Keller wrote:

> 23:	if ( $#ARGV < 0 ) {
> 24:		die $usage;
> 25:	}

Use this, instead:

23:	unless( @ARGV ) {
24:		die $usage;
25:	}

It's easier to read, too.

Best,

David


More information about the Pdx-pm-list mailing list