in reply to File Naming
This should do the job:
my $user = "User"; open(USER, ">$user.txt") || die "Can't create user file $user.txt: $!" +; print USER "foo";#user data goes here
This assumes you have the proper write permissions on your server of course.