Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: $ENV {'FOO'} $foo

by wog (Curate)
on Feb 14, 2002 at 23:57 UTC ( #145586=note: print w/replies, xml ) Need Help??

in reply to $ENV {'FOO'} $foo

On most systems there will be a signifigant performance overhead from using %ENV rather then a "normal" variable. %ENV access a system dependent table, which is typically not designed for efficient access. (On UNIX, for example, the environment table is (usually, at least) stored as an unordered, C-style, null-terminated array of strings in the format "KEY=VALUE". Searching through this to find an element is not very efficient, obviously.) Unless you need to interface with C code that uses environment variables or want to pass things to your child processes or recieve things from parent processes, you probably shouldn't use %ENV.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2016-10-27 13:22 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (362 votes). Check out past polls.