in reply to Loading Hash From FileHandle - Cannot Chomp Input Keys

map can take a code block as the first argument, so

my %person = map { chomp; $_ => 1 } <DATA>;would work.

Replies are listed 'Best First'.
Re^2: Loading Hash From FileHandle - Cannot Chomp Input Keys
by roho (Bishop) on Dec 22, 2004 at 04:01 UTC
    Thanks to all for your suggestions. They all work fine. I am using bmann's, since it is the closest to my original attempt.
    Thanks again, roho.

    "Its not how hard you work, its how much you get done."