scribouille
Programmer
Hi,
Well, my problem is the following :
-I have 2 packages A.pm and B.pm and one principal programm, main.pl
I try (but it doesn't work) to specify my 1rst packqge like that :
#A.pm :
package A;
require Exporter;
@ISA=qw(Exporter);
@EXPORT=qw(Sub1 %Var1);
@EXPORT_OK=qw($Var2);
%Var1=(1=>...,2=>...);
use strict #Is it the good place for it ?
my($Var2)
Sub1'={...}
1;
My questions :
How can I have a variable (for instance %Var) both :
->Visible and not writable NEITHER by main NORE by B
->Visible and midifiable by A (well, it could see easy but... not for me)
How I have to specify my package B and the good specification of A and the main
Thanks for your help
Well, my problem is the following :
-I have 2 packages A.pm and B.pm and one principal programm, main.pl
I try (but it doesn't work) to specify my 1rst packqge like that :
#A.pm :
package A;
require Exporter;
@ISA=qw(Exporter);
@EXPORT=qw(Sub1 %Var1);
@EXPORT_OK=qw($Var2);
%Var1=(1=>...,2=>...);
use strict #Is it the good place for it ?
my($Var2)
Sub1'={...}
1;
My questions :
How can I have a variable (for instance %Var) both :
->Visible and not writable NEITHER by main NORE by B
->Visible and midifiable by A (well, it could see easy but... not for me)
How I have to specify my package B and the good specification of A and the main
Thanks for your help