in reply to (OT) user creation with perl

You can't create a new user without having root-permissions. You have to be root (or use sudo), then you can use the adduser command.