On Wed, 2001-11-14 at 03:57, AMORE,JUAN (HP-Roseville,ex1) wrote: > %Unix= ("SHELL" => "/bin/csh", > "PAGER" => "more", > "DB" => "mysql"); > > print "Value: ,=> $unix{SHELL}\n";
The => in the last line is not necessary: print "Value: ", $unix{"SHELL"}\n"; will DWYM. As a side point, you might be interested to know that the environmental variables that your hash represents are already available from within perl, in the %ENV hash. For example, 'print "SHELL = $ENV{'SHELL'};" will also work as expected. Hope this helps, ~C. -- $a="printf.net"; Chris Ball | chris@void.$a | www.$a | finger: chris@$a "In the beginning there was nothing, which exploded." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]