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 68f56c8baf9fa6d77a25030e3f86faab5038b7cf..d9d7fd99ae2430216892b79893166542cff28409 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|$)/;