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 ?
In reply to Re: Re: Re: Basic arithmetic functions
by hossman
in thread Basic arithmetic functions
by KristiePi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |