Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > b17716f8da33a3d666e1b14fe7b067ea > files > 10

perl-CGI-XMLApplication-1.1.3-6mdv2010.0.noarch.rpm

#!/usr/bin/perl

# (c) 2001 ph15h

# example2.pl

use lib qw( ../../  );

{
  # this script will figure by its calling name, which module to load
  my ( $package ) = ( $0 =~ /\/?(\w+)\.pl/i );
  require "$package.pm";

  # some times there are already information available at this level.
  my %ctxt = (-test=>1);

  my $script_class = new $package;
  $script_class->setStylesheetPath( "your/path" );
  $script_class->run(\%ctxt);
}