Hi,
resource, wnt, unx and component are three hash which I am using to read data from (my config file). Where as informix, oracle and sql are three variable which I am using to check which database I am using.
Basically I want to keep the originality so I want to use Hash Tie, after checking few data I am writing all hash creating new file using file handle.
And the warning I am getting is,

WARNING: calling Tie::Hash->new since Tie::Hash->TIEHASH is missing at generate_xcf.pl line 35"
Line 53 means this line in above code, 35 tie %resource,'Tie::Hash'; 36 tie %wnt,'Tie::Hash'; 37 tie %unx,'Tie::Hash'; 38 tie %component,'Tie::Hash';
hope you got me, looking forward for suggestion. Cheers!!!


Hurray!!! found the solution!!! add Ix in front of hash,
35 tie %resource,'Tie::IxHash'; 36 tie %wnt,'Tie::IxHash'; 37 tie %unx,'Tie::IxHash'; 38 tie %component,'Tie::IxHash';
Any way thanks, Cheers

In reply to Re^2: Hash Tie by Sun751
in thread Hash Tie by Sun751

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.