joe_kool has asked for the wisdom of the Perl Monks concerning the following question:
But what if I want to simply tell login.cgi:/myApp/cgi/login.cgi /myApp/config/webData.pm ---------------------------------------------------------- login.cgi: ---------------------------------------------------------- #!/usr/bin/perl use CGI qw(:standard); use CGI::Carp qw(fatalsToBrowser); use lib "../config"; use webData qw(GetLinks); use strict; ... my $links_ref = MyPackages::Config::webData::GetLinks(); ---------------------------------------------------------- webData.pm: ---------------------------------------------------------- package MyPackages::Config::webData; use Exporter (); @ISA = qw(Exporter); @EXPORT_OK = qw(GetLinks GetEmails); use strict; ...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Good package practices
by bmann (Priest) on Jan 26, 2006 at 22:46 UTC | |
Re: Good package practices
by kwaping (Priest) on Jan 26, 2006 at 21:58 UTC | |
by joe_kool (Novice) on Jan 26, 2006 at 22:31 UTC | |
by kwaping (Priest) on Jan 26, 2006 at 22:46 UTC | |
by joe_kool (Novice) on Jan 27, 2006 at 20:14 UTC | |
Re: Good package practices
by Errto (Vicar) on Jan 26, 2006 at 22:47 UTC | |
Re: Good package practices
by ysth (Canon) on Jan 27, 2006 at 05:04 UTC | |
Re: Good package practices
by Anonymous Monk on Jan 27, 2006 at 07:32 UTC | |
Re: Good package practices
by joe_kool (Novice) on Jan 27, 2006 at 20:15 UTC |