I wrote the following code:


$thread = "TEFD0";
$logfile = "V_DEBUG12121.txt";
$delay = "10232";
@servers = qw (SERVER1 SERVER2 SERVER3 SERVER4);
$server {$thread}->{$logfile}->{$delay} = @servers;

print @$server {$thread}->{$logfile}->{$delay};

My expectation is that it would simply print out the list value of
@servers. Instead I get an error: Can't use an undefined value as a HASH
reference.

If I use: print $server {$thread}->{$logfile}->{$delay};

Then I get the scalar context of the # of values in @servers - 4. So I
know I am missing something obvious. Since the value I am looking for is
the contents of an array, why do I get that error?


--Paul



Reply via email to