Hello All,
Im opening a file desciptor in perl and sending data using print CMD "$xyz".
is there a limit to the length of the string that I can give to this CMD at a time.
Hello All,
Im opening a file desciptor in perl and sending data using print CMD "$xyz".
is there a limit to the length of the string that I can give to this CMD at a time.
There is no perl-defined limit - just the amount of available memory for the process or free disk space. What problem are you having?
use DBI;
use Socket;
use Sys::Hostname;
use Net::FTP;
use Spreadsheet::WriteExcel;
$cmd=3;
open(CMD, ">&$cmd");
print CMD "println(\"$Result\")" ;
$Result contains a string.
CMD is the port to which my design tool listens to for any commands to execute. But when I write the above print statement only part of the totla string (i.e $Result) appears in my tool.
So is the limit from perl side or my tool.
p.s to avoid this I split the string into lists and used foreach to send the values in $Result.
Could the problem be buffering? If you write more, will the old data eventually trickle through? Read the Perl FAQs about buffering in that case.