use strict;
require ("/private/lib/Community.pm");
#use private::lib::Community qw/
# comm_init
# comm_config
# comm_auth
# comm_login_url
#/;
use lib '/htdocs/www/cgi-bin/classifiedsDev/admin';
Links::init('/htdocs/www/cgi-bin/classifiedsDev/admin');
use Links qw/$IN $DB $CFG/;
use GT::Base;
use CGI::Carp qw(fatalsToBrowser);
use GT::Dumper;
use GT::CGI;
use Links::Build;
use GT::Template;
use Links::SiteHTML;
I'm curious if an how I can use "use" instead of require to include the community module.
If I type in just
use Community
I get an error.
If I must use require, is there any equivalent to with require to just load in the subs that you need?
#use private::lib::Community qw/
# comm_init
# comm_config
# comm_auth
# comm_login_url
#/;
Thanks,
Mike
require ("/private/lib/Community.pm");
#use private::lib::Community qw/
# comm_init
# comm_config
# comm_auth
# comm_login_url
#/;
use lib '/htdocs/www/cgi-bin/classifiedsDev/admin';
Links::init('/htdocs/www/cgi-bin/classifiedsDev/admin');
use Links qw/$IN $DB $CFG/;
use GT::Base;
use CGI::Carp qw(fatalsToBrowser);
use GT::Dumper;
use GT::CGI;
use Links::Build;
use GT::Template;
use Links::SiteHTML;
I'm curious if an how I can use "use" instead of require to include the community module.
If I type in just
use Community
I get an error.
If I must use require, is there any equivalent to with require to just load in the subs that you need?
#use private::lib::Community qw/
# comm_init
# comm_config
# comm_auth
# comm_login_url
#/;
Thanks,
Mike