Help for this page

Select Code to Download


  1. or download this
    use Data::Dumper;
    my $data = <<EOT;
    ...
    push @{$hash{$1}}, $2 while $data =~ /(\S+)\s*:\s*(\S+)/g;
    
    print Dumper(\%hash);
    
  2. or download this
    $VAR1 = {
              'label1' => [
    ...
                            'item2'
                          ]
            };