You can always use object oriented syntax:
$file_h[$file]->print("$record_r1[0]$record_r1[1]$record_r1[2]$record_r1[3]\n");
Alternatively, you can print the array more simply:
$file_h[$file]->print(@record_r1[0..3],"\n");
Or so, if these four elements are actually all:
$file_h[$file]->print("@record_r1\n");
source
share