in reply to Why to wrap Perl classes inside a Perl script into blocks

Without the braces the very last line would be part of package Calc. The braces are indeed there to limit the scope of the packages as without them there is no equivalent to an "end package" statement.

  • Comment on Re: Why to wrap Perl classes inside a Perl script into blocks