There's more than one way to do things | |
PerlMonks |
Re: Why to wrap Perl classes inside a Perl script into blocksby hippo (Bishop) |
on Jun 01, 2015 at 17:07 UTC ( [id://1128604]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|