in reply to Excessive UserAgent/Request memory usage.

I'm not sure if it has anything to do with your problem, but to my knowledge, the following line in your code is not correct syntax:
%myhash = [ username => "" ];
...I think you want
%myhash = ( username => "" ); # parenthases rather than square brack +ets

Also, have you tried testing the return value of your sysread()? Perhaps something is amiss thre.

Alan "Hot Pastrami" Bellows

Replies are listed 'Best First'.
Re: Re: Excessive UserAgent/Request memory usage.
by Anonymous Monk on Dec 08, 2000 at 21:58 UTC
    It doesn't, unfortunately, since the original code doesn't use that (duff) bit of syntax. I hurredly produced the simple subset program - I am, after all, supposed to be working :) The line is completely redundant anyway so removing it should produce a better minimum subset - my apologies.

    The sysread() must(tm) be doing the right thing, since the length of the string is tested on the next line, and is correct. Again the sysread is used only to guarantee maximum "simpleness" for this example; it isn't actually what happens in the program itself.

    Take is as read that these two aspects don't impact on the problem.

    Cheers for responding,

    Mike.