Compilation failed in require at e:\domains\karawachi.com\user\htdocs\upload\default.pl line 13.
So, your problem is with checkname.pl. Run a
perl -c checkname.pl and you'll see your problem. From the looks of your code, you'll see something like:
Global symbol "$name" requires explicit package name at checkname.pl l
+ine 11.
checkname.pl had compilation errors.
Your
$name variable is not scoped, and you are running under
use strict in that file (which is a Good Thing). Toss a
my in front of it, and double-check the rest of your scoping issues.
One other thing: It's probably better to rewrite:
push @INC, "e:/domains/karawachi.com/user/htdocs/upload";
as
use lib "e:/domains/karawachi.com/user/htdocs/upload";
Check out the use lib docs