#THE CALL tabs( side => "right", selected => 1, tabs => [{ title => "To Do", url => "?tab2=1"}, #THE SUB sub tabs { %args = @_; print "Selected: $args{'selected'}
"; print "Side: $args{'side'}
"; print "
".Dumper($args{'tabs'})."

"; @tabs = @{$args{'tabs'}}; print "
".Dumper(@tabs)."

"; %tab = $tabs[0]; print "
".Dumper(%tab)."

"; %tab = $tabs[1]; print "
".Dumper(%tab)."

"; #So I've got the output correct to here I think. In @tabs is two values which are both hashtables.. #Now I just need to figure out how to access them. #THE OUTPUT $VAR1 = [ { 'url' => '?tab2=1', 'title' => 'To Do' }, { 'url' => '?tab2=2', 'title' => 'Tried' } ]; $VAR1 = { 'url' => '?tab2=1', 'title' => 'To Do' }; $VAR2 = { 'url' => '?tab2=2', 'title' => 'Tried' }; $VAR1 = 'HASH(0x9a7806c)'; $VAR2 = undef; $VAR1 = 'HASH(0x9cc087c)'; $VAR2 = undef;