in reply to Using a user input array with File::Find

Unless I've misunderstood your question, there's no need for that while loop: File::Find can take a list of directories as its last argument.

... File::Find::find({wanted => \&wanted}, @ARGV);

--
"Language shapes the way we think, and determines what we can think about."
-- B. L. Whorf