in reply to Re^3: Problem with Tie::File
in thread Problem with Tie::File

Ok, here is the cut down version of what's being done:
my @actualData; my @expectedData; # $actualFile and $expectedFile are the names of the files # that will be diff'ed. # At this point they are unmodified copies of the files I # want to manipulate and then compare tie (@actualData, tie::File, $actualFile, mode => O_RDWR, autodefer => + 0); tie (@expectedData, tie::File, $expectedFile, mode => O_RDWR, autodefe +r => 0); # Here would do lots of stuff with @actualData # and @expectedData untie @actualData; untie @expectedData; # ...and here would do the file comparison of $actualFile and $expecte +dFile
I had a look at the caveats but couldn't see anything there that worried me (I'm not bothered about performance issues).

Replies are listed 'Best First'.
Re^5: Problem with Tie::File
by jdporter (Paladin) on Feb 11, 2009 at 12:23 UTC

    That code doesn't even compile. Please show me a program (not a code snippet) which you ran which demonstrates the problem.

    I think we'll also need more info about the data/files. I would recommend that your program include a routine which actually creates the sample input files.

    I'd like to help you, but you have to help me help you. Thanks.

    Between the mind which plans and the hands which build, there must be a mediator... and this mediator must be the heart.
      Trying to produce a small piece of code (which produces the data files it needs) and which will demonstrate the problem. Not having much luck at the moment (reproducing the problem other than in the lengthy real code that is). It may be that the problem is more specific (to my code) than I had thought - rather than a generic problem with File::Tie.