perlmeditation
esskar
As we all know, $^O always returns 'MSWin32' on windows based systems.
For compatibilty reasons it's good and cannot be changed.
But i was wondering whether or not it is possible to bend the Perl interna so that on a windows system, $^O could
<ul>
<li>return ('MSWin32', 'Windows7-32bit-Ultimate') or ('MSWin32', 'WindowsVista-64bit-Professional')</li>
<li>return something blessed, that stringfies to 'MSWin32' but also has methods to get better information about the OS (this could also be applied to other os architectures)
</ul>