- or download this
my $node = my $tree = [];
my @stack;
- or download this
if ($token eq '(') {
push @{ $node }, [];
push @stack, $node;
$node = $node->[-1]; # the new empty array ref
}
- or download this
if ($token eq ')') {
$node = pop @stack;
}
- or download this
$a = $b = [];
$a = 2;
- or download this
#!/usr/bin/perl -w
...
$_[0]{$_[1]} = delete $_[0]{'.'};
}
}