I've created an object that contains a hash table. However, when I try to iterate through the hash table, I get syntax errors. Any help would be greatly appreciated.
-j
Code:
foreach $key (keys %step->{actions}) {
print "\t$key\n";
}
sub new_step {
my $object = {
name => shift,
ypos => shift,
actions => {}
};
bless $object;
return $object;
} # end new_step
-j
Code:
foreach $key (keys %step->{actions}) {
print "\t$key\n";
}
sub new_step {
my $object = {
name => shift,
ypos => shift,
actions => {}
};
bless $object;
return $object;
} # end new_step