perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Maas" <frank.m...@cheiron-it.nl>
Subject RE: Scope Question
Date Sat, 20 Aug 2005 17:44:09 GMT
Guys,

I am getting a bit nervous and since it is Saturday and I am -1 day before
a deadline, this is not good. So, although this thread (and my question) is
drifting towards basic Perl, I try my luck.

I make use of the following construction

package A::B::C;
my %CFG = ( some_tag => some_config, ... }
...
sub do_something {
  ...
  do_something_else( $CFG{some_tag} );
  ...
}
...
1;

After reading much of this discussion I am beginning to wonder if I am 
creating closures? (I must admit that the concept of closures is -for
some reason- very hard for me to grasp). If this is creating closures,
then what would be a better approach?

Regards,

Frank

Mime
View raw message