perl -w avg_routines.pl (+some way of specifying avg3()) avg.txt