G'day santoshsas02,

Welcome to the monastery.

From your problem description, it sounds like you may have a typo somewhere near code that looks like:

use Storable; use ClusterConfigSpecEx;

It could be something as simple as a missing semicolon; however, without seeing that part of your code, I can only guess. If that doesn't help, you'll need to post more code for us to help you further.

The strict and warnings pragmata will often identify typos such as this. If you're not already using these, I strongly recommend you do.

Probably unrelated to your reported issue, but the code

my $temp = retrieve 'test1'; $temp = $$temp;

is potentially confusing and may prove to be error-prone (particularly if changes are made to this part of your script at some later date).

If you did store a scalar value, e.g.

store \$scalar_to_store, 'test1';

then retrieval as

my $retrieved_scalar = ${retrieve 'test1'};

would reduce confusion over the intent and you wouldn't be using the same variable as both reference and dereference values.

-- Ken


In reply to Re: Storable library is masking the other libraries of perl by kcott
in thread Storable library is masking the other libraries of perl by santoshsas02

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.