On Nov 8, Lisa Neclos said: >sub print {
I wouldn't name a function print() if I were you. >while (my($key, $val) = each($ref_hash)) { #while hash has another Since $ref_hash is a reference to a hash, and each() needs a hash, use %$ref_hash, or %{ $ref_hash }. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]