chiark / gitweb /
bin/expandvars: Don't use defined() on arrays.
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Sat, 28 Sep 2002 11:06:38 +0000 (11:06 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Sat, 28 Sep 2002 11:06:38 +0000 (11:06 +0000)
expandvars

index 68f56c8..d9d7fd9 100755 (executable)
@@ -53,7 +53,7 @@ while (<CONF>)
     last;
 }
 
-usage unless defined @params && $#params >= 0;
+usage unless @params;
 
 # Eek. This matches the next (optionally double-quoted) string on the line.
 my $stringre = qr/\s*("(?:[^\\]|\\.)*?"|(?:[^\\]|\\.)+?)(?:\s|$)/;