From: Ian Jackson Date: Tue, 11 Aug 2009 14:54:33 +0000 (+0100) Subject: Export for people's convenience X-Git-Tag: 3.4~232 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.web-live.git;a=commitdiff_plain;h=5b9cc22ec3ee084ba46a83c0ae99f4831317ff9d Export for people's convenience --- diff --git a/yarrg/CommodsWeb.pm b/yarrg/CommodsWeb.pm index 2bd558b..96dde35 100644 --- a/yarrg/CommodsWeb.pm +++ b/yarrg/CommodsWeb.pm @@ -35,12 +35,15 @@ use POSIX; use Commods; use CommodsDatabase; +our $self_url; + BEGIN { use Exporter (); our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS); $VERSION = 1.00; @ISA = qw(Exporter); - @EXPORT = qw($dbh &db_setocean &db_connect &db_doall); + @EXPORT = qw($dbh &db_setocean &db_connect &db_doall + $self_url); %EXPORT_TAGS = ( ); @EXPORT_OK = qw(); @@ -53,4 +56,6 @@ for my $dir (@INC) { } } +$self_url= 'http://'.$ENV{'SERVER_NAME'}.$ENV{'SCRIPT_NAME'}.$ENV{'PATH_INFO'}; + 1;