Did anyone suggest the following yet?
package Foo;
my sub _helper_function { ... }
sub public_function {
...
helper_function(...);
...
}
# Some other file:
use Foo;
Foo::public_function(@args); # Okay
Foo::_helper_function(@args); # Throws an exception/dies
Is it possible? Advisable?
--
Piers
- Re: IDEA: lexically scoped subs anyone Piers Cawley
- Re: IDEA: lexically scoped subs anyone Simon Cozens
- Re: IDEA: lexically scoped subs anyone Ariel Scolnicov
- Re: IDEA: lexically scoped subs anyone Simon Cozens
- Re: IDEA: lexically scoped subs anyone Dave Storrs
- Re: IDEA: lexically scoped subs anyone David L. Nicol
