Does one of these items not belong? >From Exegesis 4:
This new turbo-charged 'smart match' operator will also work on arrays, hashes and lists: if @array =~ $elem {...} # true if @array contains $elem if $key =~ %hash {...} # true if %hash{$key} if $value =~ (1..10) {...} # true if $value is in the list if $value =~ ('a',/\s/,7) {...} # true if $value is eq to 'a' # or if $value contains whitespace # or if $value is == to 7 It's very cool--but why is it $key =~ %hash but $value =~ @array rather than one way or the other? John A They laughed at Joan of Arc, but she went right ahead and built it. ---Gracie Allen