Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只想将哈希从客户端传输(发送或接收)到服务器。
你能告诉我在 Perl 中哪种方式更可取,或者你能推荐任何CPAN模块吗?
您可以在客户端使用JSON对哈希进行编码,并将编码后的字符串发送到服务器。
然后,在服务器端解码接收到的字符串(再次使用JSON),您可以取回您的哈希值。
请参阅Storable和Data::Dumper。两者都是核心模块。
插座模块?