What are you trying to accomplish? What is @files? Did you define it somewhere? Or is it a Perl global var I don't know of?
On 10/19/07, Joseph L. Casale <[EMAIL PROTECTED]> wrote: > 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 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/