I have 3 arrays @arr1, @arr2 and @arr3. I need to print them into the same file and I'm doing this.
open FILE, <file name>;
print FILE "@arr1\n";
print FILE "@arr2\n";
print FILE "@arr3\n";
close FILE;
I would like to shorten it to
for ($i=0;$i<4;$i++) {
print FILE "@arr$i\n";
}
I know there is an error but is there a work around to this?
Thanks.
Desmond
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
