Forum Moderators: open
Old way throwing errors:foreach my $name (sort keys $memdex{$thread}) {
print MYFILE "|$name";
}
ChatGPT said: ;-)
The error is likely due to the fact that the keys function requires a hash or hash reference, but you provided a hash element ($memdex{$thread}), which is treated as a scalar in this context. In recent versions of Perl, you need to explicitly dereference the hash reference to get the correct behavior.
Here's how you can modify your code:foreach my $name (sort keys %{ $memdex{$thread} }) {
print MYFILE "|$name";
}
When the only reason we know there has been a server move is that you tell us, things have probably gone well