If my input is in the form: Name: Happy, Species: Cat, Gender: Male Name: Peanut, Species: Hamster, Gender: Female
how come foreach (keys %names) { if ($names{$_} =~ /\s*Gender:\s*$gen\s*/i) { AND if ($names{$_} =~ /\s*Species:\s*$sp\s*/i) { WORK why doesn't if ($names{$_} =~ /\s*Name:\s*$pn\s*/i) { Thanks, Terri _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]