File: TestYAMLBase.pm

package info (click to toggle)
libyaml-perl 1.31-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 672 kB
  • sloc: perl: 2,294; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 165 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
package TestYAMLBase;

sub new {
    my $self = bless {}, shift;
    while (my ($k, $v) = splice @_, 0, 2) {
        $self->{$k} = $v;
    }
    return $self;
}

1;