cd where/perl/modules/are grep -Hr '^sub' * > ~/all_funcs.txt grep -Hr '^use' * > ~/all_uses.txt