Skip Menu |

This queue is for tickets about the Params-Util CPAN distribution.

Report information
The Basics
Id: 17363
Status: resolved
Priority: 0/
Queue: Params-Util

People
Owner: Nobody in particular
Requestors: smueller [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: _NUMBER checks for numbers
As I suggested _CFLOAT, I'd like to see _NUMBER as a utility function. Explanation in the POD of the attached, changed module files.
Subject: 03_all.t
#!/usr/bin/perl -w # Main testing for Params::Util use strict; use lib (); use UNIVERSAL 'isa'; use File::Spec::Functions ':ALL'; BEGIN { $| = 1; unless ( $ENV{HARNESS_ACTIVE} ) { require FindBin; chdir ($FindBin::Bin = $FindBin::Bin); # Avoid a warning lib->import( catdir( updir(), 'lib' ) ); } } use Test::More tests => 16; use_ok( 'Params::Util', ':ALL' ); ##################################################################### # Is everything imported ok( defined *_IDENTIFIER{CODE}, '_IDENTIFIER imported ok' ); ok( defined *_CLASS{CODE}, '_CLASS imported ok' ); ok( defined *_SCALAR{CODE}, '_SCALAR imported ok' ); ok( defined *_POSINT{CODE}, '_POSINT imported ok' ); ok( defined *_NUMBER{CODE}, '_NUMBER imported ok' ); ok( defined *_SCALAR0{CODE}, '_SCALAR0 imported ok' ); ok( defined *_ARRAY{CODE}, '_ARRAY imported ok' ); ok( defined *_ARRAY0{CODE}, '_ARRAY0 imported ok' ); ok( defined *_HASH{CODE}, '_HASH imported ok' ); ok( defined *_HASH0{CODE}, '_HASH0 imported ok' ); ok( defined *_CODE{CODE}, '_CODE imported ok' ); ok( defined *_CALLABLE{CODE}, '_CALLABLE imported ok' ); ok( defined *_INSTANCE{CODE}, '_INSTANCE imported ok' ); ok( defined *_SET{CODE}, '_SET imported ok' ); ok( defined *_SET0{CODE}, '_SET0 imported ok' ); 1;
Subject: 02_util.t

Message body is not shown because it is too large.

Subject: Util.pm

Message body is not shown because it is too large.

Subject: Changes
Download Changes
application/octet-stream 744b

Message body not shown because it is not plain text.

Been mulling over whether this was worth it for a long time. Finally decided yes, added to 1.40_01 and released.