On Mon, 6 Aug 2007, Ken Foskey wrote:
On Sun, 2007-08-05 at 18:26 +0100, Jorge Almeida wrote:
It sounds like you want something similar to parameter handling,
generally this works on escalating files. eg /etc/myprog overridden by
~/.myprog overrridden by a specific options file and so on.
The trick is simply to read them in that order and then just use what is
left. So if /etc/myprog sets key X and ~/.myprog changes key X to some
other value then the last one to change wins. You just have to set them
up in the right order and it is not that hard.
I suppose I can split the input file into several temporary files and
then redirect the input for each command to the appropriate file. I was
hoping for something cleaner, though.
Thanks.
--
Jorge Almeida
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/