1Perl::Critic::Utils::DaUtsaeCronCvoenrtsriiobnu(t3e)d PePrelrlD:o:cCurmietnitca:t:iUotnils::DataConversion(3)
2
3
4
6 Perl::Critic::Utils::DataConversion - Utilities for converting from one
7 type of data to another.
8
10 Provides data conversion functions.
11
13 This is considered to be a public module. Any changes to its interface
14 will go through a deprecation cycle.
15
17 "boolean_to_number( $value )"
18 Return 0 or 1 based upon the value of parameter in a boolean
19 context.
20
21 "dor( $value, $default )"
22 Return either the value or the default based upon whether the value
23 is defined or not.
24
25 "dor_n( $value0, $value1, ... )"
26 Returns the first defined value among its arguments. If none is
27 defined, simply returns.
28
29 "defined_or_empty( $value )"
30 Return either the parameter or an empty string based upon whether
31 the parameter is defined or not.
32
34 Elliot Shank <perl@galumph.com>
35
37 Copyright (c) 2007-2011 Elliot Shank.
38
39 This program is free software; you can redistribute it and/or modify it
40 under the same terms as Perl itself. The full text of this license can
41 be found in the LICENSE file included with this module.
42
43
44
45perl v5.28.0 2018-07P-e1r5l::Critic::Utils::DataConversion(3)