Complete::Regexp::Pattern - Completion routines for Regexp::Pattern
This document describes version 0.001 of Complete::Regexp::Pattern (from Perl distribution Complete-Regexp-Pattern), released on 2016-12-31.
use Complete::Regexp::Pattern qw( complete_regexp_pattern_module complete_regexp_pattern_pattern ); my $res = complete_regep_pattern_module(word => 'L'); # -> {word=>['License', 'License/'], path_sep=>'/'} my $res = complete_regep_pattern_pattern(word => 'Y'); # -> {word=>['YouTube/video_id'], path_sep=>'/'}
Complete with Regexp::Pattern::* module, without the Regexp::Pattern:: prefix.
This is just a thin wrapper for:
Complete::Module::complete_module(ns_prefix=>'Regexp::Pattern', ...)
This function is not exported by default, but exportable.
Arguments ('*' denotes required arguments):
path_sep => str
Will be passed to Complete::Module::complete_module.
word* => str (default: "")
Word to complete.
Return value: (any)
Complete Regep::Pattern name, e.g. YouTube::video_id.
The name is qualified with its module name, without the Regexp::Pattern:: prefix.
Regexp::Pattern::
Please visit the project's homepage at https://metacpan.org/release/Complete-Regexp-Pattern.
Source repository is at https://github.com/perlancar/perl-Complete-Regexp-Pattern.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Complete-Regexp-Pattern
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2016 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Complete::Regexp::Pattern, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Complete::Regexp::Pattern
CPAN shell
perl -MCPAN -e shell install Complete::Regexp::Pattern
For more information on module installation, please visit the detailed CPAN module installation guide.