Is there a way to store multiple values to a key without using any extra modules?
Here is the code I have so far:
$key = $ref->{$uniqueKey};
my $systemKey = GetSystem($key);
push @{$referenceTable{$key}}, $systemKey;
my ($k, @v);
# SET UP THE TABLE
print "<table border='1'>";
print "<th>User</th><th>System</th>";
# EXECUTE THE WHILE LOOP
while (($k, @v) = each(%referenceTable)){
print "<tr><td>".$k."</td>";
print "<td>";
foreach (@v) {
print STDERR "$_\n";
}
print "</td></tr>";
}
The values I have for $key/$systemKey are correct, but then when I push $systemKey into an array I am unable to print it properly in my table. If I do a foreach (@v) or just a print "@v", it prints ARRAY(0x86901ac) and not its actual contents...