On May 22, 2009, at 19:36 , Geoffrey Broadwell (via RT) wrote:
$ perl6 -e 'say %*ENV.exists(<adsfadsfasdf>)'
0
$ perl6 -e 'say defined %*ENV<adsfadsfasdf>'
1


I don't recall if defined autovivifies, but assuming it does that would make sense. %*ENV is special, it represents environment variables, which are always strings; so `defined %*ENV<adsfadsfasdf>' would instantiate a new environment variable with the empty string as its value.

--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allb...@kf8nh.com
system administrator [openafs,heimdal,too many hats] allb...@ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH


Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to