in reply to Re: How do I trauncate a flat file, then append to front?
in thread How do I truncate a flat file, then append to front?

For the third point, you can do:
@old_logfile = @logfile[0..($#logfile > 99 ? 100 : $#logfile)];