in reply to supress an error

I have a couple of questions.

1.) Why are you defining variables in one package to export to another, when it is just as easy to define them in the program? You can always use Exporter to help you.

Sample: (untested)

package COMMON::AUTH; use strict; use Exporter; @COMMON::AUTH::ISA = qw(Exporter); our ($user,$admin); @EXPORT = qw($user $admin); $user = $ENV{'REMOTE_USER'}; $admin = 'admin'; 1;
2.) In the earlier code sample, COMMON::AUTH is designed to be used as a module (with use or require). You might want to rethink your design. Why put "global" variables into a perl (.pl) file? Why not just define them in every script; or better yet, make small subs in your COMMON::AUTH module that return specific data. For example:
package COMMON::AUTH; use strict; use Exporter; @COMMON::AUTH::ISA = qw(Exporter); @EXPORT = qw(user admin); sub user { return $ENV{'REMOTE_USER'}; #Make sure to untaint this data just i +n case } sub admin { return 'admin'; } 1;
The cool thing about using subs to return this (fairly trivial) data is that you can do some other processing (for example, untainting) before you return.

Theodore Charles III
Network Administrator
Los Angeles Senior High
4650 W. Olympic Blvd.
Los Angeles, CA 90019
323-937-3210 ext. 224
email->secon_kun@hotmail.com
perl -e "map{print++$_}split//,Mdbnr;"