in reply to Problems with Loop
#!/usr/bin/perl -w use strict; my $ntsrv="ntsrv"; my @number=qw(143 148 171 177 180 184 186 191 207 225 226 229 471 530 +593 661 663 669 672 673 674 675 676 677 673 674 675 676 677 678 679 6 +79A 681 685 687 691 700 702 703 706 707 709 711 715 717 731 732 734 7 +37 738 741 743 749 751 755 761 762 768 769 773 777 779 780 781 788 82 +1 824 828 875 886); my $in=" "; foreach $in (@number) { $in=$ntsrv.$in; print "$in \n"; --------------Insert ftp code here (not installed at my site...)---- print "finished\n \n"; }
It can do lots of useful stuff and is well worth learning. My O'Reilly "Programming Perl" has a good tutorial that I always refer to, I don't know off the top of my head of any online tutorials to the debugger. Good luck!perl -d file.pl "n" to execute the next line
|
|---|