FTP messenger only dispalys first line of index.text
Posted: 15 Oct 2013, 14:31
lfd . pl: Using the loop with separate print for each line of @message only displays first line of index.text (multiline unix text file) is dispalyed:
Connected to ...
FIRSTLINEHERE
Connection closed by remote host.
When I send the file contents in a single print then ALL lines get diplayed on client.
map { s/\[IPADDRESS\]/$peeraddress/ } @message;
map { s/\[HOSTNAME\]/$hostname/ } @message;
print $client join("\n", @message)."\n";
Connected to ...
FIRSTLINEHERE
Connection closed by remote host.
When I send the file contents in a single print then ALL lines get diplayed on client.
map { s/\[IPADDRESS\]/$peeraddress/ } @message;
map { s/\[HOSTNAME\]/$hostname/ } @message;
print $client join("\n", @message)."\n";