#!perl -w use strict; my %person = map { m!^(.*)$!; defined($1) and length($1) ? ($1 => 1) : () } ; __DATA__ Ruth Samuel Paul John Silas #### #!perl -w use strict; my %person; while ( chomp($_ = ) ) { $person{$_} = 1; } __DATA__ Ruth Samuel Paul John Silas