How do you get the size of an array inside a hash in 1 step?
this works (2 steps):
$cnt=@{$hash{$key}};
print "cnt is: $cnt\n";
But if I want to do it in 1 step (print):
print "cnt is: @{$hash{key}}\n";
this doesn't work - it returns all the array elements ...
this works (2 steps):
$cnt=@{$hash{$key}};
print "cnt is: $cnt\n";
But if I want to do it in 1 step (print):
print "cnt is: @{$hash{key}}\n";
this doesn't work - it returns all the array elements ...