*************** sub BuildLeaf { my ($hostname, $lo_add, $ospf_process, $ospf_area, $bgp_as, $bgp_pass, @VRF_names, @spines_ip) = @_; #$ do a whole bunch of stuff here ## } BuildLeaf ($leaf_info[0][[$i]],$leaf_info[[1]][[$i]],"Underlay",$ospf_area,$bgp_as,$bgp_MD5_pass,@{@vrf_info[0]},@{@spine_info[[1]]}); ***************