From 5b9cc22ec3ee084ba46a83c0ae99f4831317ff9d Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 11 Aug 2009 15:54:33 +0100 Subject: [PATCH] Export for people's convenience --- yarrg/CommodsWeb.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; -- 2.30.2