Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: APPerl: "osname=cosmo" problem

by Anonymous Monk
on Jun 08, 2023 at 14:15 UTC ( [id://11152696]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11152696]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-23 11:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found