Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/motemen/universal-perldoc
open perldoc from your code or repl
https://github.com/motemen/universal-perldoc
Last synced: about 2 months ago
JSON representation
open perldoc from your code or repl
- Host: GitHub
- URL: https://github.com/motemen/universal-perldoc
- Owner: motemen
- Created: 2011-07-12T10:05:55.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-07-12T10:06:25.000Z (over 13 years ago)
- Last Synced: 2024-10-15T15:29:36.476Z (3 months ago)
- Language: Perl
- Homepage:
- Size: 89.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.pod
- Changelog: Changes
Awesome Lists containing this project
README
package UNIVERSAL::perldoc;
use strict;
use warnings;
use autodie ':all';our $VERSION = '0.01';
*UNIVERSAL::perldoc = \&perldoc
unless defined &UNIVERSAL::perldoc;sub perldoc {
my ($module, @args) = @_;
$module = ref $module if ref $module;
push @args, $module;
system 'perldoc', @args;
}1;
__END__
=head1 NAME
UNIVERSAL::perldoc - Browse target module's perldoc from your code (or repl)
=head1 SYNOPSIS
use UNIVERSAL::perldoc;
Some::Module->perldoc; # opens perldoc
=head1 DESCRIPTION
UNIVERSAL::perldoc invokes C about the module whose perldoc method was
called.=head1 AUTHOR
motemen [email protected]
=head1 SEE ALSO
L
=head1 LICENSE
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.=cut