but when i use same script to upload the file in other module
This seems to be the core of your problem. Without seeing how you're using this script in other modules, it's impossible to know what the problem is - but if I was forced to, I'd probably guess that it's some kind of variable scoping issue that would become apparent if you had "use strict" turned on throughout your program.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re^4: Uploading a file
by davorg
in thread Uploading a file
by anirudh_sml
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |