Way too long.
If you're having trouble with usernames, trim it down to just that fragment. Throw that fragment into a test.pl, and print to see what it is doing with explicit inputs.
I did notice that you are removing only whitespace from the username. Specifically, you are not removing quote characters from the name.
Consider what happens if $User_Name = " joe's name here ";Then, your
Results in 'joe's name here' which has mismatched quotes.$User_Name= "'" . $User_Name . "'";
In general, do not filter out bad characters. Instead, only allow good characters. That way if you miss one, you're not hosed.
might be a better choice, or simply s/\D//g; if you want only numbers.$User_Name =~ s/[^a-zA-Z0-9]//g;
In reply to Re: Specaila characters string not coming in final output file
by SuicideJunkie
in thread Specaila characters string not coming in final output file
by namishtiwari
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |