In order to read file name you should use $file1=<$conn>.
Only if
print $sock "$file";
is changed to
print $sock "$file\n";
In reply to Re^2: FIle transfer using sockets
by ikegami
in thread FIle transfer using sockets
by ashok13123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |