914,
I noticed you are using the -T option for tainting. Is this running as a CGI? In a nutshell, taint is designed to ensure that Perl doesn't do anything externally by using information obtained externally. I don't think this is your problem, but I figured it was worth pointing out.

Ok - so you have done the first step - eliminate the possibility that you have a bad copy of Tie::File by proving that it can work. Now you need to find out what it is about your code that breaks it.

  • Trim out the fat. This includes, but is not limited to removing all print statements and things not related to the problem.
  • Run the script again - if the problem is still there, go back to the first step
  • If the problem goes away - then you have discovered that something you thought was innocuous actually wasn't - you have found your own problem.
  • If you have removed all the fat that you can possibly remove and the problem is still there - post that code - that way we can see exactly what you are seeing

    Cheers - L~R


    In reply to Re: Re: Re: Tie::File strangeness with unshift by Limbic~Region
    in thread Tie::File strangeness with unshift by u914

    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.