Help for this page

Select Code to Download


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