user-agent classificator for perl/java