#!/usr/bin/perl use strict; use File::Find; undef $/; my %dict; my $options = { wanted => \&process, no_chdir => 1 }; find($options, '.'); print_dict(\%dict); sub print_dict { my $dict = shift; foreach my $word (sort keys %{$dict}) { print "

$word