- or download this
my %hash;
while ( <FILE> )
...
or next;
$hash{$key} = 'whatever';
}
- or download this
my %hash;
while ( <FILE> )
...
next unless $key;
$hash{$key} = $value;
}
- or download this
/^(\w+)\|/;
$hash{$1)='blah';
- or download this
if ( /^(\w+)\|/ ) { $hash{$1} = 'blah' }