Can you be a little more specific about what you consider to be "well-formed"? e.g.: Should it always be an absolute path, starting with "/"? Do you want to be really picky and avoid things like "/home/user/../otheruser/../user/perl/scripts/"?
What's the likelihood that your scalar might contain values (bytes or characters) above the ascii range? Would you consider such values "well-formed"?
Comment on Re: How to validate a directory string?