#!/usr/bin/perl # pass 2 numbers, prints list from start to stop. May need to change first line # depending on where perl is located. $num_args = @ARGV; if ( $num_args != 2) { print "Usage $0 start_number end_number\n"; exit; } # get command line args $start_id = shift; $end_id = shift; @range=($start_id..$end_id); foreach $i (@range) { print "$i\n"; }