in reply to Re^3: Problem with Tie::File
in thread Problem with Tie::File
I had a look at the caveats but couldn't see anything there that worried me (I'm not bothered about performance issues).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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Problem with Tie::File
by jdporter (Paladin) on Feb 11, 2009 at 12:23 UTC | |
by psandie (Initiate) on Feb 12, 2009 at 10:56 UTC |