-
-
02 May 2013 03:16:39 UTC
- Distribution: Net-AMQP
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (13)
- Testers (4476 / 996 / 0)
- Kwalitee
Bus factor: 1- 33.63% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (289.73KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Class::Accessor
- Class::Data::Inheritable
- Scalar::Util
- XML::LibXML
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Net::AMQP::Value - A collection of classes for typing AMQP data
SYNOPSIS
use Net::AMQP::Value; # ... somewhere, in an AMQP table: Net::AMQP::Value::String->new("1") # not an integer Net::AMQP::Value::Integer->new(" 1") # not a string Net::AMQP::Value::Timestamp->new(1) # not an integer Net::AMQP::Value::Boolean->new(1) # not an integer Net::AMQP::Value::true # shorthand for ...Boolean->new(1) Net::AMQP::Value::false # shorthand for ...Boolean->new(0)
DESCRIPTION
Generally in tables Net::AMQP tries to be smart, so e.g. a table value of '1' or '-1' is transmitted as an integer. When this intelligence becomes a problem, use these classes to type your data. For example, a table value of
Net::AMQP::Value::String-
new(1)> will be transmitted as the string "1".These classes also overload the basics like "", 0+, and bool so if you use them outside an AMQP table, they will probably Do The Right Thing.
SEE ALSO
Module Install Instructions
To install Net::AMQP, copy and paste the appropriate command in to your terminal.
cpanm Net::AMQP
perl -MCPAN -e shell install Net::AMQP
For more information on module installation, please visit the detailed CPAN module installation guide.