File: Bar.pm

package info (click to toggle)
libsyntax-perl 0.004-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 132 kB
  • sloc: perl: 162; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 266 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use strict;
use warnings;

package Syntax::Feature::TestFoo::Bar;

sub install {
    my ($class, %args) = @_;

    my $target  = $args{into};
    my $options = $args{options};

    no strict 'refs';
    *{ "${target}::bar" } = sub { $options };

    return 1;
}

1;