| 1 | package Sah::Schema::perl::podname; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 7 | 1 | our $DATE = '2024-02-16'; # DATE | |
| 8 | 1 | our $DIST = 'Sah-SchemaBundle-Perl'; # DIST | |
| 9 | 1 | our $VERSION = '0.050'; # VERSION | |
| 10 | |||
| 11 | 1 | our $schema = ['str' => { | |
| 12 | summary => 'Perl POD name, e.g. Moose::Cookbook', | ||
| 13 | description => <<'_', | ||
| 14 | |||
| 15 | Perl POD name, e.g. `Config`, `Some::Other::POD`. | ||
| 16 | |||
| 17 | Basically the same as `perl::modname`, but with a different completion. | ||
| 18 | |||
| 19 | _ | ||
| 20 | match => '\A[A-Za-z_][A-Za-z_0-9]*(::[A-Za-z_0-9]+)*\z', | ||
| 21 | |||
| 22 | 'x.perl.coerce_rules' => [ | ||
| 23 | 'From_str::normalize_perl_modname', | ||
| 24 | ], | ||
| 25 | |||
| 26 | # provide a default completion which is from list of installed perl PODs | ||
| 27 | 'x.completion' => 'perl_modname', | ||
| 28 | |||
| 29 | }]; | ||
| 30 | |||
| 31 | 1 | 1; | |
| 32 | # ABSTRACT: Perl POD name, e.g. Moose::Cookbook | ||
| 33 | |||
| 34 | __END__ | ||