monk2b has asked for the wisdom of the Perl Monks concerning the following question:
The first perl scripts that I wrote started out:
monk2b
Which was okay because I didn't have very many devices to keep track of.Then I learned:print "Enter blah blah blah\n"; $device_id = <STDIN>;
And this was much better ,I could call the script and input the argument at the same time.I now have even more devices and I need to automate the process even more.Can someone point out a better way to do this.What I need to do is read from a file where each line will contain 10 digits and nothing else. Then I will place each 10 digit number in as an argument.I hope I have explained my question well enough Thanks in adance for all of the help$device_id = shift(@ARGV);
monk2b
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Certainly learning
by Adam (Vicar) on Oct 11, 2000 at 04:00 UTC | |
Re: Certainly learning
by mirod (Canon) on Oct 11, 2000 at 04:00 UTC | |
by Adam (Vicar) on Oct 11, 2000 at 04:45 UTC | |
Re: Certainly learning
by redcloud (Parson) on Oct 11, 2000 at 03:52 UTC | |
by davorg (Chancellor) on Oct 11, 2000 at 12:20 UTC | |
Re: Certainly learning
by monk2b (Pilgrim) on Oct 11, 2000 at 04:02 UTC | |
by redcloud (Parson) on Oct 11, 2000 at 04:05 UTC |
Back to
Seekers of Perl Wisdom