my %hash; while(my $line = <>) { my ($name, $value) = split m/something goes here/, $line; die "error: value already defined!" if exists $hash{$name}; $hash{$name} = $value; }
-Paul
In reply to Re^3: Speeding up perl script
by jettero
in thread Speeding up perl script
by samuelalfred
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |