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 Hunt

[EMAIL PROTECTED]
Software Engineer III
UCAR - COSMIC, Tel. (303) 497-2611

On Thu, 29 Nov 2007, Uri Guttman wrote:



hi all,

thanks for the help with hash ideas. the class went pretty well today
with even the most experienced perl coder learning something new about
hash slices. i did some editing of more examples or variations that
aren't on the slides and those helped a bit. the slides are at:

http://sysarch.com/computershare/hashes/index.html

yes, i know the sets slide is empty. i didn't have time to write it.

you can show these slides to others but attribute them to me, please. i
didn't even put copyright notices in the templates so don't rip me off
for my lifetime + 75 years!

uri

--
Uri Guttman  --  [EMAIL PROTECTED]   http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs    http://jobs.perl.org



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} ) {

yep! that is why i hired fwp to do my proofreading for me! :)

if there is any demand here i will post the urls for the other class
slides. they are slowly building up a corpus (along with other articles
i have written) that i hope will one day be remangled into some form of
book. and as i said there are plenty of small errors, typos, format
issues etc. i did these slides under time pressure and never fixed up
the plentiful bugs as they were not public.

thanx,

uri

-- 
Uri Guttman  --  [EMAIL PROTECTED]   http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs    http://jobs.perl.org