Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Max 16384 bytesby archfool (Monk) |
on Jul 02, 2007 at 14:02 UTC ( [id://624450]=note: print w/replies, xml ) | Need Help?? |
It looks like they're setting a 16K read buffer size if stat doesn't return one (i.e. it returns undef or 0 for element 11).
The more important issue is that whoever wrote this code did NOT comment their constants. Constants should always be commented so others know what they mean AND why they were chosen. So, unfortunately for you, you'll never know WHY they chose 16K bytes as a buffer size. =shurg= Seems arbitrary to me... or it worked for THEIR OS.
In Section
Seekers of Perl Wisdom
|
|