Help for this page
push @s, &share( { $cmd => time } }; ## The & before share() is import +ant here; and one of the few times you should ever use it. ## or ... ## or my %hash : shared = ( $cmd => time() ); push @s, \%hash;
my @array : shared; $array[ 0 ] = 'fred'; ## ok ... $array[ 3 ] = { 'a'..'z' }; ## NOT OK my %hash : shared = ( 'a' .. 'z' ); $array[ 3 ] = \%hash; ## OK
$World = { Players => [ ... ] } };