Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
where the hash name is hash_name1 hash_name2, dependent on the value of $i. Basically i need to create hash lookups for multiple files which will vary each time Thanksfor ($i=1; $i<=$number; $i++) { open (lookup, "<file" . "$i"); while (<lookup>) { ($ref_name, $ref +_id) = (split /\t/, $_)[3,4] $hash_name{$ref_id} = $ref_name; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: multiple files and hashed
by davido (Cardinal) on Nov 06, 2006 at 16:34 UTC | |
|
Re: multiple files and hashed
by davorg (Chancellor) on Nov 06, 2006 at 16:36 UTC | |
|
Re: multiple files and hashed
by grep (Monsignor) on Nov 06, 2006 at 16:43 UTC | |
by Anonymous Monk on Nov 06, 2006 at 16:54 UTC | |
|
Re: multiple files and hashed
by jbert (Priest) on Nov 06, 2006 at 17:14 UTC | |
|
Re: multiple files and hashed
by johngg (Canon) on Nov 06, 2006 at 16:58 UTC | |
|
Re: multiple files and hashed
by suaveant (Parson) on Nov 06, 2006 at 16:36 UTC |