Garrett D'Amore wrote:

So why is it written in perl at all, then?  If its just a thin wrapper,
then why introduce the perl runtime into the mix?

Because it made it *much* easier to write something that picked up new kstats without having to make code changes, and because it means you can use perl regular expressions to select kstats, and because it was much quicker to write. Sun::Solaris::Kstat was originally something I wrote when I was a benchmarking engineer, to make my life easier. People seemed to think it was useful, it ended up in the product. /bin/kstat is there so you can use the module easily from the command-line.

The important point is that /bin/kstat isn't the reason perl is in Solaris,so it seems a bit backwards to complain that it uses it.

/bin/kstat is just a data extraction tool, nothing more. If you don't like it, feel free to do something better - after all, it's Open Source, right? ;-)

--
Alan Burlison
--
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to