Is there something elsewhere in the code that sets a minimum length?
No, I've just set a max. And I require at least 1 letter, so I guess there's technically a minimum length of 1. But I don't
think that would become a problem. In theory, if someone signed up as "c" and then someone else signed up as "c", that second person would automatically become "c1". And then the next person would be "c2". And so on.
At least, that's what my goal with this script is, anyway.
Does this mean you can't have overlapping names, like lucy24 and lucy2424 (form that actually occurs in one of my email addresses because reasons)?
Correct-ish.
I originally assigned numbers to every user, so you would find their data with:
example.com/12345 (to see their user profile)
example.com/classifieds/12345 (to see their classified ads)
example.com/personals/12345 (to see their personal ad)
and so on. But it's not a memorable link at all, and since I'm redoing everything I wanted to change that to something more like:
example.com/lucy24
example.com/classifieds/lucy24
example.com/personals/lucy24
There could be another user with lucy2424, sure; the strings aren't identical so it would be allowed. But if someone tried to create a second lucy24 then they would become lucy25.
perl (of which I don't speak a solitary word).
I've probably told you this, but I learned Perl before HTML! This would have been '96 or so, and the world was a loooottttt different! LOL I was using Netscape Navigator to build HTML through their WYSIWYG editor, then taught myself Perl by downloading freebie scripts I found online, opening them in Notepad, and just reading and trying to figure it out. I bought an O'Reilly book for beginners, but it was WAY over my head! LOL I'm sure that I still have it around here somewhere, I would never throw a book away :-)