| 1 | 18 | ▶ | use v5.26; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 18 | ▶ | use Object::Pad; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | 18 | ▶ | use Getopt::Pad::Type::Number; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | class Getopt::Pad::Type::Int :isa(Getopt::Pad::Type::Number) :strict(params) { | ||||||||||
| 7 | 18 | ▶ | use constant NAMES => ['i', 'int', 'integer']; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 18 | our $VERSION = '0.04'; | |||||||||
| 10 | |||||||||||
| 11 | 43 | ▶ | method checkFormat($value) { | ||||||||
|
Subroutine
checkFormat: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 12 | 43 | ▶ | return $value =~ /\A[+-]?[0-9]+\z/ ? undef : sprintf("'%s' is not an integer", $value); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | 18 | } | |||||||||
| 14 | } | ||||||||||
| 15 | |||||||||||
| 16 | 18 | 1; | |||||||||
| 17 | |||||||||||
| 18 | __END__ | ||||||||||