#!/usr/local/bin/perl # ~/bin/count_col.p c=1 # just counts how many non zeroes there are in col $f=0; $t=10; $n=11; # How to override min and max values with command line eval "\$$1=\$2" while @ARGV && $ARGV[0]=~ /^(\w+)=(.*)/ && shift; $d = ( $t - $f ) / ($n - 1 ) ; while ($n > 0 ) { printf"%10g\n",$f ; $f += $d ; $n -- ; }