Joseph L. Casale wrote:
> Sorry, it is an array I used above this block of code.
> jlc
>
>   
That could have easily been guessed (that's one of the few options). 
The question is what's in it and what are you trying to do with it.
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of yitzle
> Sent: October-19-07 11:16 AM
> To: Joseph L. Casale
> Cc: beginners@perl.org
> Subject: Re: Printing size of array unitializes array?
>
> 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/


Reply via email to