1Net::AMQP::Value(3)   User Contributed Perl Documentation  Net::AMQP::Value(3)
2
3
4

NAME

6       Net::AMQP::Value - A collection of classes for typing AMQP data
7

SYNOPSIS

9         use Net::AMQP::Value;
10
11         # ... somewhere, in an AMQP table:
12
13           Net::AMQP::Value::String->new("1")     # not an integer
14           Net::AMQP::Value::Integer->new(" 1")   # not a string
15           Net::AMQP::Value::Timestamp->new(1)    # not an integer
16           Net::AMQP::Value::Boolean->new(1)      # not an integer
17           Net::AMQP::Value::true                 # shorthand for ...Boolean->new(1)
18           Net::AMQP::Value::false                # shorthand for ...Boolean->new(0)
19

DESCRIPTION

21       Generally in tables Net::AMQP tries to be smart, so e.g. a table value
22       of '1' or '-1' is transmitted as an integer.  When this intelligence
23       becomes a problem, use these classes to type your data.  For example, a
24       table value of "Net::AMQP::Value::String-"new(1)> will be transmitted
25       as the string "1".
26
27       These classes also overload the basics like "", 0+, and bool so if you
28       use them outside an AMQP table, they will probably Do The Right Thing.
29

SEE ALSO

31       Net::AMQP, Net::AMQP::Common
32
33
34
35perl v5.30.0                      2019-07-26               Net::AMQP::Value(3)
Impressum