use strict; use warnings; use Data::Dumper; my %record; while (<>) { if(/(.*):(.*)/) { $record{$1}=$2; } } print Dumper \%record;
In reply to Re: Hash Add new elements through loop
by kiruthika.bkite
in thread Hash Add new elements through loop
by tart
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |