We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Most modules that export symbols use Exporter. This is what Pod::Usage uses to export pod2usage.
pod2usage
There are two ways to use Exporter:
Inherit from it.
use Exporter; our @EXPORT = qw( pod2usage ); our @ISA = qw( Exporter );
Import import from it.
import
use Exporter qw( import ); our @EXPORT = qw( pod2usage );
This is what Pod::Usage does:
use Exporter; our @EXPORT = qw( pod2usage ); our @ISA = $Pod::Usage::Formatter;
This works if the formatter inherits from Exporter (such as Pod::Text), but it fails if the formatter doesn't. This is the case for Pod::Man.
Replace
use Exporter;
with
use Exporter qw( import );
or replace
@ISA = ( $Pod::Usage::Formatter );
@ISA = ( $Pod::Usage::Formatter, 'Exporter' );
Until fixed, one can use the following:
BEGIN { $Pod::Usage::Formatter = '...'; } package Pod::Usage { use Exporter qw( import ); } use Pod::Usage qw( pod2usage );
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Most modules that export symbols use Exporter. This is what Pod::Usage uses to export
pod2usage
.There are two ways to use Exporter:
Inherit from it.
Import
import
from it.This is what Pod::Usage does:
This works if the formatter inherits from Exporter (such as Pod::Text), but it fails if the formatter doesn't. This is the case for Pod::Man.
Fix
Replace
use Exporter;
with
or replace
with
Workaround
Until fixed, one can use the following:
The text was updated successfully, but these errors were encountered: