From: Ajey Kulkarni <[EMAIL PROTECTED]>
> >>> while (read OLDFILE, $buff, 8*1024);
> 
> A quick qn. :) Y is 8*1024 being mentioned here? Are you just
> word-aligning or something else?

Something like that. 1024 is one K. So 8*1024 is 8KB.

I don't know what the size of a block is when reading from the 
particular disk storing that file, but the block size is usualy some 
power of 2 in KB. 2KB, 4KB, 8KB, 16KB, 32KB. It would of course be 
most efficient if I was reading the file in chunks equal to the block 
size, but 8KB seems to me like a reasonable guess. 

I'm sorry I don't remember the right names, I'm sure someone can 
explain better.

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to