]>
git.ipfire.org Git - thirdparty/cups.git/blob - scripting/perl/CUPS.pm
12 our @ISA = qw(Exporter DynaLoader);
14 # Items to export into callers namespace by default. Note: do not export
15 # names by default without a very good reason. Use EXPORT_OK instead.
16 # Do not simply export all your public functions/methods/constants.
18 # This allows declaration use CUPS ':all';
19 # If you do not need this, moving things directly into @EXPORT or @EXPORT_OK
21 our %EXPORT_TAGS = ( 'all' => [ qw(
37 our @EXPORT_OK = ( @
{ $EXPORT_TAGS{'all'} } );
57 # This AUTOLOAD is used to 'autoload' constants from the constant()
58 # XS function. If a constant is not found then control is passed
59 # to the AUTOLOAD in AutoLoader.
63 ($constname = $AUTOLOAD) =~ s/.*:://;
64 croak
"& not defined" if $constname eq 'constant';
65 my $val = constant
($constname, @_ ?
$_[0] : 0);
67 if ($! =~ /Invalid/ || $!{EINVAL
}) {
68 $AutoLoader::AUTOLOAD
= $AUTOLOAD;
69 goto &AutoLoader
::AUTOLOAD
;
72 croak
"Your vendor has not defined CUPS macro $constname";
77 # Fixed between 5.005_53 and 5.005_61
79 *$AUTOLOAD = sub () { $val };
82 *$AUTOLOAD = sub { $val };
88 bootstrap CUPS
$VERSION;
90 # Preloaded methods go here.
92 # Autoload methods go after =cut, and are processed by the autosplit program.
96 # Below is stub documentation for your module. You better edit it!
100 CUPS - Perl extension for blah blah blah
109 Stub documentation for CUPS, created by h2xs. It looks like the
110 author of the extension was negligent enough to leave the stub
119 =head2 Exportable constants
138 A. U. Thor, E<lt>a.u.thor@a.galaxy.far.far.awayE<gt>