Skip Menu |
 

This queue is for tickets about the Crypt-RSA CPAN distribution.

Report information
The Basics
Id: 86516
Status: new
Priority: 0/
Queue: Crypt-RSA

People
Owner: Nobody in particular
Requestors: Walter.D.Eaves [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Crypt::RSA::Key::Private::deserialize()
Date: Fri, 28 Jun 2013 11:56:36 +0100
To: bug-Crypt-RSA [...] rt.cpan.org
From: Walter Eaves <walter.d.eaves [...] gmail.com>
Download (untitled) / with headers
text/plain 511b
Hello, I'm using 1.99. I wanted to embed my private key as a here document inside a module. I used serialize(), embedded the key with 'END' in my module, but when I tried to deserialize(String => $doc) I hit the "strict refs" error. I worked around it by writing to a tempfile and using new() as usual. If you changed the constructor to accept a filehandle, I could have used the open($fh, "<", \$doc); feature from 5.8 that allows a filehandle to be opened on a variable. -- walter.d.eaves@gmail.com


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.