It seems to me that you might simply want to evaluate the size of the file using stat or the -s file test operator, then conditionally mv the file based on the return from that.
No good deed goes unpunished. -- (attributed to) Oscar Wilde
Comment on Re: perlish way to 'tail -100 $logfile'