Added search subdirectories for both perl and java examples