chiark / gitweb /
Export for people's convenience
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 11 Aug 2009 14:54:33 +0000 (15:54 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 11 Aug 2009 14:54:33 +0000 (15:54 +0100)
yarrg/CommodsWeb.pm

index 2bd558b4dc74daec15da023a21b8d8db046f7524..96dde357c9bb40c31d3f7b399848ce9002d1167e 100644 (file)
@@ -35,12 +35,15 @@ use POSIX;
 use Commods;
 use CommodsDatabase;
 
 use Commods;
 use CommodsDatabase;
 
+our $self_url;
+
 BEGIN {
     use Exporter ();
     our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS);
     $VERSION     = 1.00;
     @ISA         = qw(Exporter);
 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();
     %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;
 1;