imrags has asked for the wisdom of the Perl Monks concerning the following question:
while(my ($key,$value)= each (%hash_table)) { while(<FILE>) { chomp; my ($objid,$other) = split(/\s+/,$_); if($objid =~ /$key/i) { print "$key is present in $objid\n"; } else { next; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hash/file --> doesn't seem to work
by fullermd (Vicar) on Jun 10, 2009 at 07:08 UTC | |
by perldesire (Scribe) on Jun 10, 2009 at 07:34 UTC | |
|
Re: Hash/file --> doesn't seem to work
by GrandFather (Saint) on Jun 10, 2009 at 10:25 UTC | |
|
Re: Hash/file --> doesn't seem to work
by Anonymous Monk on Jun 10, 2009 at 07:39 UTC | |
|
Re: Hash/file --> doesn't seem to work
by imrags (Monk) on Jun 10, 2009 at 09:12 UTC | |
by Crian (Curate) on Jun 10, 2009 at 09:37 UTC |