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

It definitely depends on the OS platform on which you are running, as this is where %ENV happens. It is behaving as a tied hash, hence slower than a real hash as extra bits of code are being called.

A lot depends on the implementation, and this may be quirky due to how the operating system handles environments.

See the vmsperl@perl.org mailing list archives for some examples of this.