1PPI::Token::Number::VerUssieorn(C3o)ntributed Perl DocumPePnIt:a:tTiooknen::Number::Version(3)
2
3
4
6 PPI::Token::Number::Version - Token class for a byte-packed number
7
9 $n = 1.1.0;
10 $n = 127.0.0.1;
11 $n = 10_000.10_000.10_000;
12 $n = v1.2.3.4
13
15 PPI::Token::Number::Version
16 isa PPI::Token::Number
17 isa PPI::Token
18 isa PPI::Element
19
21 The "PPI::Token::Number::Version" class is used for tokens that have
22 multiple decimal points. In truth, these aren't treated like numbers
23 at all by Perl, but they look like numbers to a parser.
24
26 base
27 Returns the base for the number: 256.
28
29 literal
30 Return the numeric value of this token.
31
33 - Does not handle leading minus sign correctly. Should translate to a
34 DashedWord. See <http://perlmonks.org/?node_id=574573>
35
36 -95.0.1.0 --> "-_\000\cA\000"
37 -96.0.1.0 --> Argument "`\0^A\0" isn't numeric in negation (-)
38
40 See the support section in the main module.
41
43 Chris Dolan <cdolan@cpan.org>
44
46 Copyright 2006 Chris Dolan.
47
48 This program is free software; you can redistribute it and/or modify it
49 under the same terms as Perl itself.
50
51 The full text of the license can be found in the LICENSE file included
52 with this module.
53
54
55
56perl v5.30.1 2020-01-30 PPI::Token::Number::Version(3)