in reply to Re: routine as subroutine and on command line
in thread routine as subroutine and on command line

fore!
% perl -ple'$;+=$_}{$_=$;/$.' 3numbers.txt

-Blake