perl -ne '@arr=split;;printf "%-20s\t%-20s\t%-20s\n",$arr[0],$arr[1],( +$.==1)?"Scaling factor":$arr[0]/$arr[1]' filename
In reply to Re: Stumped with a math question in my Perl program
by suhailck
in thread Stumped with a math question in my Perl program
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |