CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Packages

 



scribouille
Deleted

May 16, 2001, 7:39 AM

Post #1 of 1 (354 views)
Packages Can't Post

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


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives