in reply to Re^4: eval, Read environment variable and expand using eval
in thread eval, Read environment variable and expand using eval
#!/usr/bin/perl # use warnings; use Data::Dumper; my $h = { 'foo' => 1 }; if(exists($h->{notexist}{baz})){ } if(defined($h->{notdefined}{baz})){ } print Dumper($h); exit 0;
$VAR1 = { 'notexist' => {}, 'foo' => 1, 'notdefined' => {} };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: eval, Read environment variable and expand using eval
by ikegami (Patriarch) on Feb 19, 2010 at 21:29 UTC | |
|
Re^6: eval, Read environment variable and expand using eval
by Anonymous Monk on Feb 19, 2010 at 17:36 UTC |