my %validators = ( string => W3C::STRING, ... ); my $type = $verify->{content}; my $validator = $validators{lc($type)}; if (!defined($validator) || !dvalid($search, $validator)) { die }
In reply to Re^3: Passing values to external packages
by ikegami
in thread Passing values to external packages
by genyded
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |