[EMAIL PROTECTED] wrote:
> my openconf function contains:
>
> sub openconf {
>my $pkg = shift;
>my $self = bless([EMAIL PROTECTED],$pkg);
>open(...
>
>return($self);
> }
>
> I have "my @config;" set at the beggining of the module
>
you have defined @config as a class va
Please bottom post
> my openconf function contains:
>
> sub openconf {
>my $pkg = shift;
>my $self = bless([EMAIL PROTECTED],$pkg);
>open(...
>
>return($self);
> }
>
> I have "my @config;" set at the beggining of the module
>
As Lee pointed out it would be easier to
[EMAIL PROTECTED] wrote:
my openconf function contains:
sub openconf {
my $pkg = shift;
my $self = bless([EMAIL PROTECTED],$pkg);
open(...
I don;'t think
open(...
will work :)
Wy not share the whole code and also param() or how can we help :)
return($self);
}
Lee.M
my openconf function contains:
sub openconf {
my $pkg = shift;
my $self = bless([EMAIL PROTECTED],$pkg);
open(...
return($self);
}
I have "my @config;" set at the beggining of the module
-
This mail is from: <[EMAIL PROTECTED]>
> Hi,
> I'm trying to create library that can open many config files. For
> examlpe, I have cfg1.conf and cfg2.conf. My lib is getting information
> from those files and store it into an array. If I do:
>
> my $cfg1 = My::Lib->openconf("cfg1.conf");
> my $cfg2 = My::Lib->openconf("cfg2.conf");
>
Hi,
I'm trying to create library that can open many config files. For
examlpe, I have cfg1.conf and cfg2.conf. My lib is getting information
from those files and store it into an array. If I do:
my $cfg1 = My::Lib->openconf("cfg1.conf");
my $cfg2 = My::Lib->openconf("cfg2.conf");
print $cfg1->par