in reply to Deleting Oldest Logfiles

Maybe:
chomp( $LOGSIZE )

instead of:

chomp( $LOGSTR )

Super Search is also your friend.