in reply to Re: Tie::File strangeness with unshift
in thread Tie::File strangeness with unshift

line 699 in v0.95 (which i'm using, see above) is:
read $fh, $old, $readsizei;
And... it turns out that when i was "uninstalling" 0.95 as mentioned above, it wasn't being uninstalled... i found the offending file (to look at it above) and renamed it.

The test script now magically works ( locate File.pm reports another copy of File.pm, that one is v0.93)

Replies are listed 'Best First'.
Re: Re: Re: Tie::File strangeness with unshift
by Limbic~Region (Chancellor) on May 26, 2003 at 01:28 UTC
    914,
    I couldn't let this drop - glad that you found the problem. I am intrigued though. Are you sure line 699 is exactly as you have written it above? I just downloaded it and mine reads:

    read $fh, my $old, $readsize;

    Notice the my infront of old and no i at the end of $readsize. I wonder if someone was hacking what they shouldn't have been. In anycase, if you are confident the problem is with v.095 let Dominus know, but be sure to include a test case he can reproduce.

    Cheers - L~R

      L~R,

      You seem to have a point... i have no idea how this happened, but apparently the File.pm in my libs was/got corrupted.

      I'm not the only one on the server, but the list is extra-short, so i know where to look... ;-)

      I've deleted and restored, and now v0.95 works peachy, both with the test case and my original CGI script (which was unchanged).

      Anyhow, thanks again for your help/attention! It makes me glad to know that there wasn't/isn't a 'real' issue with Tie::File.