use Root; my $r = new Root; $r->show( [ {$var1 => 'val1', $var2 => 'val2'} ] )