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

#######################################################
# lect04_subst1
#
# playing with the s/// operator
#
# modified by Sharon Tuttle from "Learning Perl",
#    by Schartz and Phoenix
#
# last modified: 9-14-04
#######################################################

while (<>)
{
    chomp;

    #   substitute the *first* 'perl' in each line with 'PERL!'
    s/perl/PERL!/;

    printf "NEW VERSION:<%s>\n", $_;
}


# end of lect04_subst1