in reply to pci.ids to a complex data structure
if you had turned on warnings, you would have gotten:"9710", devices => { "NetMos Technology",
Also you are using curly braces where you should be using round braces - it should be:perl pci_ids.pl Odd number of elements in anonymous hash at pci_ids.pl line 4. Odd number of elements in anonymous hash at pci_ids.pl line 4. Reference found where even-sized list expected at pci_ids.pl line 4. $VAR1 = { 'HASH(0x1a62388)' => undef };
In general it is advisable to use%pci_ids = ( #or $pci_ids = {
and if you don't understand the error messagesuse strict; use warnings;
which makes the error message a bit more verbose.use diagnostics;
|
|---|