W. Phillip Moore [Tue, 19 Jan 1999 11:39:11 +0000 (06:39 -0500)]
To: Graham Barr <gbarr@ti.com>, perlbug@perl.org
Message-ID: <13988.46383.298992.97303@zappa>
p4raw-id: //depot/cfgperl@2666
my($roots, $verbose, $safe) = @_;
my(@files);
my($count) = 0;
- $roots = [$roots] unless ref $roots;
$verbose ||= 0;
$safe ||= 0;
+ if ( defined($roots) && length($roots) ) {
+ $roots = [$roots] unless ref $roots;
+ }
+ else {
+ carp "No root path(s) specified\n";
+ return 0;
+ }
+
my($root);
foreach $root (@{$roots}) {
$root =~ s#/$##;