WebGUI Perl::Critic policy. Handle the case when the namespace is

variable instead of a literal.
This commit is contained in:
Colin Kuskie 2009-01-27 20:19:39 +00:00
parent bb53b4f088
commit 0302e7b96e

View file

@ -96,6 +96,10 @@ sub violates {
my @arguments = _get_args($arg_list);
my $namespace;
if ($arguments[1]) {
my $secondArgument = $arguments[1]->[0];
return unless $secondArgument->isa('PPI::Token::Quote');
use Data::Dumper;
print Dumper($arguments[1]);
$namespace = $arguments[1]->[0]->string;
}
else {