#!/usr/bin/env perl # words - list all words (a-zA-Z0-9 only) in the input, translated to lowercase # # $Id$ # -x for extended filtering (i.e., fewer words) use warnings; use strict; use Getopt::Std; my %opt; getopts( 'hux:', \%opt ); $opt{h} and HELP_MESSAGE(); my $x = '\W'; sub HELP_MESSAGE { print STDERR <) { chomp; map { length and print "\L$_\n" } split /$rx/; }