I have an error with the print $file ... which says 'Can't use string ("file1") as a symbol ref while "strict refs" in use' Someone can help me with that? Thank you, R.my @filez=(file1,file2); open(file1,">$path1"); open(file1,">$path2"); for (my $i=0 ; $i ; $i<$node_nb; $i++) { $file=$filez[$i]; print $file "some data"; }
In reply to Problem with File Handler by kokarikomi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |