http://qs1969.pair.com?node_id=15030


in reply to Get chatbox lines

there's no need to use splice in a void context to trim the cache in your getnewlines sub. just use the following code:
my $CACHE_LIMIT = 50; $#$cache = $CACHE_LIMIT - (1 - $[);