I am getting the error- "Length of shared data exceeds shared segment size" in my perl code when I am trying to read a csv file and load its contents into a shared variable. I am using the below code-
use IPC::Shareable;
my %options = (
create => 1,
exclusive => 0,
mode => 0666,
destroy => 1,
);
my $handle = tie $arr_share, 'IPC::Shareable', $glue, { %options } or
die "server: tie failed\n";
The CSV file is over 20 mega bytes. I have also tried defining size = 'some value', but it didnt work. Please suggest.
Thanks