Please send questions to st10@humboldt.edu .
#!/usr/bin/perl -w

#######################################################
# lect04_subst_find_first_threes
#
# print out the first 3-letter "words" in each line of a file
#
# modified by Sharon Tuttle from "Learning Perl",
#    by Schartz and Phoenix
#
# last modified: 9-14-04
#######################################################

while (<>)
{
    chomp;
                             
    if (/(\b[A-Za-z]{3}\b)/)
    {
        print "$1\n";
    }

}

# end of lect04_find_first_threes