1Moose::Autobox::Scalar(U3s)er Contributed Perl DocumentatMiooonse::Autobox::Scalar(3)
2
3
4
6 Moose::Autobox::Scalar - the Scalar role
7
9 This is a role to describes a Scalar value, which is defined as the
10 combination (union sort of) of a String and a Number.
11
13 meta
14 print
15 say
16 flatten
17 Flattening a scalar just returns the scalar. This means that you
18 can say:
19
20 my @array = $input->flatten;
21
22 # Given $input of 5, @array is (5);
23 # Given $input of [ 5, 2, 0], @array is (5, 2, 0)
24
25 first
26 As per flatten.
27
28 last
29 As per flatten.
30
32 All complex software has bugs lurking in it, and this module is no
33 exception. If you find a bug please either email me, or add the bug to
34 cpan-RT.
35
37 Stevan Little <stevan@iinteractive.com>
38
40 Copyright 2006-2008 by Infinity Interactive, Inc.
41
42 <http://www.iinteractive.com>
43
44 This library is free software; you can redistribute it and/or modify it
45 under the same terms as Perl itself.
46
47
48
49perl v5.12.2 2010-04-23 Moose::Autobox::Scalar(3)