Re: hashes over easy

2007-11-29 Thread Doug Hunt
Hi Uri: I enjoyed reading through your slides. I think I caught a typo, though: On the 'Is A' slide, the example is: my @foos = qw( foo bar baz ) ; my %is_a_foo = map { $_ = 1 } @foos ; if( $is_a_foo( $key ) { ... } Shouldn't this be: if( $is_a_foo{$key} ) { ... } Regards, Doug

Re: hashes over easy

2007-11-29 Thread Uri Guttman
DH == Doug Hunt [EMAIL PROTECTED] writes: DH Hi Uri: I enjoyed reading through your slides. DH I think I caught a typo, though: i said there will be errors!! :) most of my lesson slides for this ongoing class have had typos. DH if( $is_a_foo( $key ) { DH if( $is_a_foo{$key} ) {