my $arg1= "foo"; my $file1="bar"; my @array1= file_processing( $arg1, $file1); foreach (@array1) { process( $_); }