You are using chdir from within a thread. I would avoid that, since it is never clear between operating systems, whether the "current directory" is per-thread or global per program.
Also, replace
system "mkdir $branchdir";
with mkdir:
mkdir $branchdir;
Also, output the filename and path in your error message. I already suggested that to you but you ignore it. Please explain why you ignore my advice.
In reply to Re^3: Need Help in threading perl
by Corion
in thread Need Help in threading perl
by sachin raj aryan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |