Re: Hash in a scalar context

2007-07-10 Thread Paul Lalli
On Jul 10, 12:10 pm, [EMAIL PROTECTED] (Gowtham) wrote: > Interestingly, A hash in a scalar context returns some fraction. > > Like, this code > > @array = ( 1 .. 100 ); > %hash = @array; > print scalar %hash, "\n"; > > prints > > 33/64 > > Can som

Re: Hash in a scalar context

2007-07-10 Thread Mr. Shawn H. Corey
Gowtham wrote: Interestingly, A hash in a scalar context returns some fraction. Like, this code @array = ( 1 .. 100 ); %hash = @array; print scalar %hash, "\n"; prints 33/64 Can somebody help me understand what this 33/64 is? Thanks Gowtham It means that the hash has used 33

Re: Hash in a scalar context

2007-07-10 Thread Jenda Krynicky
> Interestingly, A hash in a scalar context returns some fraction. > > Like, this code > > @array = ( 1 .. 100 ); > %hash = @array; > print scalar %hash, "\n"; > > prints > > 33/64 > > Can somebody help me understand what this 33/64 is? perld

Hash in a scalar context

2007-07-10 Thread Gowtham
Interestingly, A hash in a scalar context returns some fraction. Like, this code @array = ( 1 .. 100 ); %hash = @array; print scalar %hash, "\n"; prints 33/64 Can somebody help me understand what this 33/64 is? Thanks Gowtham -- To unsubscribe, e-mail: [EMAIL PROTECTED] For