capfan has asked for the wisdom of the Perl Monks concerning the following question:
Dear all,
I just had a look at the script here: http://www.perlmonks.org/?node_id=1023430.
In the Perl script, all Perl classes are wrapped in a code block.
Why?
I'd guess it's to make sure that the scopes don't mix. But isn't this already done by using another name space?
Thanks all
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Why to wrap Perl classes inside a Perl script into blocks
by herveus (Prior) on Jun 01, 2015 at 17:03 UTC | |
Re: Why to wrap Perl classes inside a Perl script into blocks
by Eily (Monsignor) on Jun 01, 2015 at 17:05 UTC | |
Re: Why to wrap Perl classes inside a Perl script into blocks
by hippo (Bishop) on Jun 01, 2015 at 17:07 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |
Back to
Seekers of Perl Wisdom