misconfiguration has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
Long time reader first time poster.
I'm currently writing some code to better automate adding a print queue on HP-UX and AIX systems. These printers are addressed by a simple numeric identifier, each has to be unique. I'm wanting to have Perl read the text file and figure out which is the highest number, then store it in a Scalar for later use in the script.
Any input that points me in the right direction is greatly appreciated.
Long time reader first time poster.
I'm currently writing some code to better automate adding a print queue on HP-UX and AIX systems. These printers are addressed by a simple numeric identifier, each has to be unique. I'm wanting to have Perl read the text file and figure out which is the highest number, then store it in a Scalar for later use in the script.
Any input that points me in the right direction is greatly appreciated.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Parsing a data file to find the highest value.
by FunkyMonk (Chancellor) on Nov 30, 2007 at 18:55 UTC | |
by misconfiguration (Sexton) on Nov 30, 2007 at 19:06 UTC | |
Re: Parsing a data file to find the highest value.
by tcf03 (Deacon) on Nov 30, 2007 at 19:08 UTC | |
by fenLisesi (Priest) on Nov 30, 2007 at 19:19 UTC | |
by tcf03 (Deacon) on Nov 30, 2007 at 19:30 UTC | |
Re: Parsing a data file to find the highest value.
by moritz (Cardinal) on Nov 30, 2007 at 18:37 UTC | |
Re: Parsing a data file to find the highest value.
by sh1tn (Priest) on Dec 01, 2007 at 00:39 UTC | |
by Himalaya (Initiate) on Dec 12, 2013 at 17:25 UTC |
Back to
Seekers of Perl Wisdom