in reply to APPerl: "osname=cosmo" problem

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.

Replies are listed 'Best First'.
Re^2: APPerl: "osname=cosmo" problem
by kcott (Archbishop) on Jun 08, 2023 at 16:23 UTC

    ++ Thanks for the tip. I had a quick look: you're right about the caveats.

    I'll check this out tomorrow (actually, later today; it's 2am here). Perhaps a pragma:

    use cosmonaut;

    — Ken

      I'll check this out tomorrow (actually, later today; it's 2am here)

      G'Day kcott,

      Another natural nightowl!

      I have set Alexa to turn off my desk light at half past midnight as a very (in)visible reminder that I need to stop working, start reading physical paper (usually a physical magazine) and get away from screens and head for bed.