SYNOPSIS use HTTP::Headers::Patch::DontUseStorable; DESCRIPTION HTTP::Headers (6.11 as of this writing) tries to load Storable (2.56 as of this writing) and use its dclone() method. Since Storable still does not support serializing Regexp objects, HTTP::Headers/HTTP::Message croaks when fed data with Regexp objects. This patch avoids using Storable and clone using the alternative method. FAQ Is this a bug with HTTP::Headers? Why don't you submit a bug to HTTP-Message? I tend not to think this is a bug with HTTP::Headers; after all, Storable's dclone() is a pretty standard way to clone data in Perl. This patch is more of a workaround for current Storable's deficiencies. Shouldn't you add STORABLE_{freeze,thaw} methods to Regexp instead? This no longer works with newer Perls (5.12 and later). Why would an HTTP::Headers object contain a Regexp object in the first place? Shouldn't it only contain strings (and arrays/hashes of strings)? True. This might be a bug with the client code (e.g. in my module which uses this patch, Finance::Bank::ID::Mandiri). I haven't investigated further though and this is the stop-gap solution. SEE ALSO