I had the following code: open (FILEOUT, "> $OutDir/info") or die $!; print FILEOUT "text = abc\n"; my $Tmp = ++$#files; print FILEOUT "moretext = $Tmp\n";
When I add the 3rd line, it initializes the files array and I can't use it after? Why is that? I now have: open (FILEOUT, "> $OutDir/info") or die $!; print FILEOUT "text = abc\n"; print FILEOUT "moretext = " . @files . "\n"; And not only does that work, it also shows the real size of the array? I'm confused :)? Thanks! jlc