Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: $ENV {'FOO'} $foo

by wog (Curate)
on Feb 14, 2002 at 23:57 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-19 12:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found