#useful caller code goes here my(@arr,$count); @arr=myfunction(); $count=@arr; #more caller here