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


in reply to Re: Re: Problems with opendir in CGI
in thread Problems with opendir in CGI

So long as you're only passing things directly to perl builtins (i.e. you're not calling something externally using system()) spaces shouldn't need to be escaped and if you try and do so you'll cause yourself problems (as you've found out).