So, this is a mystery... I'd look at /usr/lib/perl5/site_perl/5.8.8/Data/Serializer.pm line 597 and start tracing back from there. The later messages may or may not be the consequence of the first unitialised value.

I had a quick look at the current version (Data::Serializer v0.48) on CPAN. Around line 597 I see:

592: sub _get_token { 593: my $self = (shift); 594: my $line = (shift); 595: #Should be anchored to beginning 596: #my ($token) = $line =~ /\^([^\^]+?)\^/; 597: my ($token) = $line =~ /^\^([^\^]{1,120}?)\^/; 598: return $token; 599: }
so, if that's the version you're using, it appears that $line is undefined. Seems that _get_token is used only in deserialize(), where it operates on its first argument (after $self), so:
my $self = (shift); if ($self->raw) { return $self->raw_deserialize(@_); } my $value = (shift); my $token = $self->_get_token($value);
I see that deserialise() is used in a number of places...

I would force the initial warning to confess (eg: local $SIG{__WARN__} = sub { confess(@_) };) and see what the stack traceback tells me.


In reply to Re: Magic number checking on storable string failed by gone2015
in thread Magic number checking on storable string failed by shanu_040

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.