B::Compiling - Expose PL_compiling to perl


B-Compiling documentation Contained in the B-Compiling distribution.

Index


Code Index:

NAME

Top

B::Compiling - Expose PL_compiling to perl

SYNOPSIS

Top

    use B::Compiling;

    BEGIN {
        warn "currently compiling ", PL_compiling->file;
    }

DESCRIPTION

Top

This module exposes the perl interpreter's PL_compiling variable to perl.

FUNCTIONS

Top

PL_compiling

This function returns a B::COP object representing PL_compiling. It's exported by default. See B for documentation on how to use the returned B::COP.

SEE ALSO

Top

B

AUTHOR

Top

Florian Ragwitz <rafl@debian.org>

COPYRIGHT AND LICENSE

Top


B-Compiling documentation Contained in the B-Compiling distribution.

use strict;
use warnings;

package B::Compiling;

our $VERSION = '0.02';

use B;
use XSLoader;

XSLoader::load(__PACKAGE__, $VERSION);

use Sub::Exporter -setup => {
    exports => ['PL_compiling'],
    groups  => { default => ['PL_compiling'] },
};

1;

__END__