![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re: APPerl: "osname=cosmo" problemby Anonymous Monk |
on Jun 08, 2023 at 14:15 UTC ( #11152696=note: print w/replies, xml ) | Need Help?? |
Probably not appropriate for $work, but: You can get some indication of the system from POSIX::uname(). The docs for this are hedged about with caveats, but if it returns something germaine you can in theory derive an appropriate value from this and assign it to $^O itself, which (believe it or not) can be modified. This modification must be done at compile time, before any of the affected modules are loaded.
In Section
Seekers of Perl Wisdom
|
|