1PPI::Token::Number(3) User Contributed Perl DocumentationPPI::Token::Number(3)
2
3
4
6 PPI::Token::Number - Token class for a number
7
9 $n = 1234; # decimal integer
10 $n = 0b1110011; # binary integer
11 $n = 01234; # octal integer
12 $n = 0x1234; # hexadecimal integer
13 $n = 12.34e-56; # exponential notation ( currently not working )
14
16 PPI::Token::Number
17 isa PPI::Token
18 isa PPI::Element
19
21 The "PPI::Token::Number" class is used for tokens that represent num‐
22 bers, in the various types that Perl supports.
23
25 base
26
27 Returns the base for the number. This is 10 for decimal, 16 for hexa‐
28 decimal, etc.
29
31 - Add proper unit testing to this
32
33 - Add support for exponential notation
34
35 - What the hell is a base256 number and why did I use it.
36 Surely it should be something more like "base1000" or "version".
37
39 See the support section in the main module.
40
42 Adam Kennedy <adamk@cpan.org>
43
45 Copyright 2001 - 2006 Adam Kennedy.
46
47 This program is free software; you can redistribute it and/or modify it
48 under the same terms as Perl itself.
49
50 The full text of the license can be found in the LICENSE file included
51 with this module.
52
53
54
55perl v5.8.8 2006-09-23 PPI::Token::Number(3)