in reply to BEGIN block

Probably to be sure the value are set before the module is loaded?
Infact an use statement is exactly equivalent to:
BEGIN { require Module; Module->import( LIST ); }
The only way to do something before this is use a BEGIN block just before the use statement
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: BEGIN block
by Laurent_R (Canon) on Oct 23, 2015 at 07:33 UTC
    Yes, that's what a BEGIN block is generally about, but, in this case, it appears that this BEGIN block with these four assignments occurs after the use IO::Socket::SSL; statement, so that these assignments are executed afterwards.
      oops, it seems i've not seen the use statement!

      L*
      There are no rules, there are no thumbs..
      Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.