in reply to Re: Re: Basic arithmetic functions
in thread Basic arithmetic functions
I mean, using an explicit END block i understand...
perl -lane '$s+=$F[2]; END{print $s/$.;}'
But what is it about your "}{" that makes the print part of an implicit END block? Is this documented behavior? or an unintenional artifact of the way the parser deals with -n ?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Basic arithmetic functions
by sauoq (Abbot) on Aug 08, 2002 at 18:54 UTC |