in reply to Re: Re: File::Find complain about invalid top directory?
in thread File::Find complain about invalid top directory?
isn't doing what you want it to do. Change that line to just push @paths, $argv; There's no reason to do any globbing there. Read up on push to see what it's doing.push @paths, <$argv/*> unless @ARGV;
what you should do to assign the default path if none is specified is <code> push @paths, "." unless @paths; <code> That should replace your section where you check to see if the count == 0. This code will push "." onto @paths if there's nothing in @paths.
Hope this helps..
Rich
|
|---|