Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: %ENV on exotic platforms

by Elian (Parson)
on Sep 29, 2003 at 19:59 UTC ( #295097=note: print w/replies, xml ) Need Help??

in reply to %ENV on exotic platforms

Every platform that Perl runs on has a native structure to match %ENV. While it may be odd and complex (such as VMS' mapping of %ENV to the symbol and logical tables) it is there, and behaves as you'd expect it to behave, and can be assumed to work as it would on Unix systems.

The interaction of the %ENV-analogue and spawned subprocesses may be interesting, that's very platform-dependent anyway, and as such is likely something you're not going to need to worry about. To keep it safe, don't use common names or abbreviations as ENV keys (such as LIB, COMMON, SRC, INCLUDE, or TMP) and try not to make the names too long (assume you've no more than 16 characters for the key and 125 characters for the value).

Files are generally more portable, though.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2021-07-29 04:39 GMT
Find Nodes?
    Voting Booth?

    No recent polls found