in reply to Script not setting ownership of new directory
You have to supply numeric uid and gids to chown.
See the documentation for chown for an example of how to translate user and group names to their numeric equivalents.
In Section
Seekers of Perl Wisdom