Net::AMQP::Value(3pm)
π NAME π
okay bestie, welcome to the User Contributed Perl Documentation page for Net::AMQP::Value(3pm) β the manual for Net::AMQP::Value, which is literally A collection of classes for typing AMQP data. π
β¨
β¨ SYNOPSIS β¨
hereβs the whole vibe in code form, no cap:
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 πΈ
okay so hereβs the tea β: 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. iconic behavior, honestly. π
π¦ SEE ALSO π¦
Net::AMQPNet::AMQP::Common
mwah π β this page is fromperl v5.42.0, dated2016-11-28, and itβsNet::AMQP::Value(3pm). thatβs the whole manual, bestie. periodt. π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Net-AMQP 0.06-bp160.1.4 Β· Artistic-1.0 or GPL-1.0+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms