in reply to beginner help
You can start with this, then add in the START number and some error checking ...
#!/usr/bin/perl use strict; my $end = $ARGV[0] || 1; my $sum = 0; for (1..$end) { $sum += $_ } print "Summation = $sum\n";
... and some example runs ...
{Z} \\vmware-host\Shared Folders > test Summation = 1 {Z} \\vmware-host\Shared Folders > test 4 Summation = 10
|
|---|