Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.
perl hashes
Name: ShaqDiesel Date: August 27, 2009 at 00:15:31 Pacific OS: Windows XP CPU/Ram: custom Product: Custom / CUSTOM Subcategory: General
Comment:
@hashtable{@key_values} = 0; while(($key, $value) = each %hashtable) { print $key . "," . $value . "\n"; } the keys print fine but the values don't show up.
Summary: Hello again everyone.... I am writing a Perl script for a DB conversion that reads records from one database, adds the records to a Hash of an Array.....Then, I connect to another DB and write ever...
Summary: Creating a hash from two key-value arrays, then want to sort by key like so: @keys = ("Red", "Yellow", "Green"); @values = ("stop", "wait", "go"); @trafficHash{@keys} = {@values}; foreach $key ( sort ...
Summary: I'm working on a script that asks the user for a symbol and, using regex, determines what subgroup of a "hash" the symbol belongs to. %sbfeeds = ( superbook1 => ["^[A][A-I]", "^[A][J-Z]", "^[B...