http://www.perlmonks.org?node_id=1150356


in reply to Re^3: Golf: Factorials
in thread Golf: Factorials

also this solution works only for series of consecutive integers starting with 1
perl -E "$a=1;say$a*=++$}for @ARGV" 0 1 2 3 1 2 6 24 perl -E "$a=1;say$a*=++$}for @ARGV" 1 3 1 2


L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.