in reply to Re: Passing values to external packages
in thread Passing values to external packages

That makes complete sense! Thanks for the fast response and advice on posting tags.
It gets a bit more complicated now because I need to append the value of a variable coming from an XML file to part of the function call value as follows:
#... $value = $verify->{content}; #string value pulled from XML file ($valu +e = STRING) $wc3_type = W3C::.$value #will not work
How can I append the scalar $value to the function call without it being a quoted value?

TIA AGAIN!

Replies are listed 'Best First'.
Re^3: Passing values to external packages
by ikegami (Patriarch) on Oct 05, 2007 at 16:26 UTC
    You could use a lookup table.
    my %validators = ( string => W3C::STRING, ... ); my $type = $verify->{content}; my $validator = $validators{lc($type)}; if (!defined($validator) || !dvalid($search, $validator)) { die }