On Fri, 25 Jun 2004, Gideon Romm wrote:
> Hi, developers. I have been in listserv hibernation for a while, but I
> am up for air and want to run an idea by you guys.
>
> First off, kudos to all of you who put together the "ltspcfg" script. I
> think it's truly exceptional work, and I love the fact that it is object
> oriented. I was wondering how the developers of the script would feel
> if we broke it up into a perl module + execution script. That is,
> basically, make the "main" package truly a package and rename the file
> "listcfg.pm". Then, in "listcfg", just "use listcfg.pm" and run the
> subroutine in the module for the program.
Thanks, I'm glad you like it. That is the project where I learned
an awful lot of perl.
In my perl scripts that i've been writing for LTSP, i've been trying
to keep things simple. That is, I try to make my scripts not
depend on anything else.
The last thing I want to do is get into supporting Sysadmins having
trouble loading Perl modules from CPAN. I know thats an extreme, but
I've just been trying to avoid problems with version mis-match between
files. So, i've kept all the logic inside the same file, rather
than breaking it out into separate modules.
>
> I only ask because I find myself in the position where I want to run
> ltspcfg but not interactively, ie. feed it what it needs and just have
> it make the changes. If it were a perl module, since it is object
> oriented, I could extend classes and call specific subroutines to build
> my non-interactive script in less time, leveraging off all the great
> code you already have.
When I first wrote ltspcfg, I was intending on having the classes do
the back-end stuff, and then have both a text and a gui front-end
do the screen stuff. I've not had the chance to go back in, and
actually do that, but it sounds like that is where you are headed.
>
> Let me know what you think. I have created a module already strictly
> based on the original that I could post to the list, but if it's a bad
> idea, you might as well tell me now. :)
I don't have anything against the idea. I'd like to see what you
can come up with.
Jim McQuillan
jam@...
>
> Cheers,
>
> -Gideon
>
>
|