my %dirs = ( log => "hello", ... }; my $dir_type = function1(); die("Unknown dir type $dir_type\n") if !exists($dirs{$dir_type}); my $dir = $dirs{$dir_type};
In reply to Re: Getting Value
by ikegami
in thread Getting Value
by perlvel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |