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.
In reply to Re: Why to wrap Perl classes inside a Perl script into blocks
by hippo
in thread Why to wrap Perl classes inside a Perl script into blocks
by capfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |