{ # minimal scope for @temp my @temp = sub1() ; sub2 ( \@temp ) ; } # end of local scope