in reply to How to make a progress counter for parsing HTML with HTML::TreeBuilder

Sorry for the noob question, but could you please explain how  (1<<16)) means "read the file in 64 kilobyte chunks"? Thanks!

  • Comment on Re: How to make a progress counter for parsing HTML with HTML::TreeBuilder
  • Download Code

Replies are listed 'Best First'.
Re^2: How to make a progress counter for parsing HTML with HTML::TreeBuilder
by choroba (Cardinal) on Nov 06, 2014 at 15:09 UTC
    1<<16 is 1 shifted to the left 16 times, i.e. 1_0000_0000_0000_0000 binary, i.e. 10000 hex, i.e. 65536 dec, i.e. 64kb.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      Thanks!