summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/cpan/autodie/t/lib/Some/Module.pm
blob: 85bb844718416ffe51d62113ae5415ff83573001 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package Some::Module;
use strict;
use warnings;
use Exporter 5.57 'import';

our @EXPORT_OK = qw(some_sub);

# This is an example of a subroutine that returns (undef, $msg)
# to signal failure.

sub some_sub {
    my ($arg) = @_;

    if ($arg) {
        return (undef, "Insufficient credit");
    }

    return (1,2,3);
}

1;