in reply to data structure question
But the following statement sets the same array value to a scalar reference:$ftp_sessions[$nbr] = { status => 1, loc => $location };
Looks like a problem of overwriting your hash value from inside the function w/ a scalar ref when the function is returned.$ftp_sessions[$nbr] = threads->create("start_ftp", $nbr, $loc);
|
|---|