in reply to Finding the length of an aray in a hash
You should really be using strict and declaring your variables with my. This can save you headaches with misspelt names (see this node) Also you might want to use $elem rather than $elim (as it is short for element.%which_day = map { $_ => scalar split /,/, $cant_make_day{$_}} keys %cant_make_day;
Hope this helps.
gav^
|
|---|