GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  NET::AMQP::VALUE (3)

.ds Aq ’

NAME

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

CONTENTS

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

Net::AMQP, Net::AMQP::Common
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 NET::AMQP::VALUE (3) 2016-04-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.