ROADS::Override - A class to override unusual/odd URL protocol schemes
use ROADS::Override; Override; if ($override{"wais"}) { $page_to_return = $override{"wais"}; } else { $page_to_return = $regular_page; }
This class defines a method which constructs a hash array keyed on the protocol scheme element of a URL. Looking up a protocol scheme which have been overridden returns a filename which should be used instead of the filename which would normally be used. This provides a simple mechanism for insinuating intermediate pages of HTML when (for example) rendering search results into HTML, which can be used to add instructions or additional information as necessary.
This method loads the list of protocols to override and HTML pages to return into the hash array override.
config/protocols unless overridden by the protocols variable.
The protocols file is formatted with one entry per line. Each entry contains the following fields :-
The protocol scheme to override.
The intermediary HTML page to return when this protocol scheme is requested.
"lookupcluster.pl" in admin-cgi, "search.pl" in cgi-bin, "tempbyhand.pl" in cgi-bin, "waylay.pl" in cgi-bin
Copyright (c) 1988, Martin Hamilton <martinh@gnu.org> and Jon Knight <jon@net.lut.ac.uk>. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
It was developed by the Department of Computer Studies at Loughborough University of Technology, as part of the ROADS project. ROADS is funded under the UK Electronic Libraries Programme (eLib), the European Commission Telematics for Research Programme, and the TERENA development programme.
Martin Hamilton <martinh@gnu.org>
To install ROADS::WPPC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ROADS::WPPC
CPAN shell
perl -MCPAN -e shell install ROADS::WPPC
For more information on module installation, please visit the detailed CPAN module installation guide.