File: ImportException.pm

package info (click to toggle)
perlimports 0.000058-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,240 kB
  • sloc: perl: 5,949; sh: 5; makefile: 4
file content (20 lines) | stat: -rw-r--r-- 322 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package Local::ImportException;

use strict;
use warnings;

require Exporter;
our @ISA       = qw( Exporter );
our @EXPORT_OK = qw( exceptional );

sub import {
    my $pkg       = shift;
    my $first_arg = shift;
    if ( $first_arg && $first_arg eq 'exceptional' ) {
        die 'oof';
    }
}

sub exceptional { }

1;