in reply to Count file lines in a directory tree
if ! exists $extList[0]; [download]
That's unusual. defined would probably be better. But I'd be inclined to write it as
if ! @extList; [download]
unless @extList; [download]