http://www.perlmonks.org?node_id=975209


in reply to Re: listing all subdirectories of directory into file
in thread listing all subdirectories of directory into file

You've got a typo (recruse vs recurse) in your code example.