somefunction() # takes 1 second to run foreach ( @bigmightarrayof360000 ) { someotherfunction($_); #takes 0,01 seconds to run }