in reply to Problem with ASP/Perlscript

Don't know if it will work but you could try putting quotes around $user: $user = "$user" . ".jpg"