# Web.pm: Class Used for Managing Web Pages package RDA::Driver::Web; # $Id: Web.pm,v 1.24 2015/07/03 11:27:26 RDA Exp $ # ARCS: $Header: /home/cvs/cvs/RDA_8/src/scripting/lib/RDA/Driver/Web.pm,v 1.24 2015/07/03 11:27:26 RDA Exp $ # # Change History # 20150703 MSC Improve abbreviation handlink in links. =head1 NAME RDA::Driver::Web - Class Used for Managing Web Pages =head1 SYNOPSIS require RDA::Driver::Web; =head1 DESCRIPTION The objects of the C class are used to manage web pages. It is a subclass of L. The following methods are available: =cut use strict; BEGIN { use Exporter; use RDA::Text qw(get_string); use RDA::Object; use IO::File; } # Define the global public variables use vars qw($STRINGS $VERSION @EXPORT_OK @ISA %MIMES); $VERSION = sprintf('%d.%02d', q$Revision: 1.24 $ =~ /(\d+)\.(\d+)/); @EXPORT_OK = qw(decode_uri encode_uri fmt_date fmt_mode %MIMES); @ISA = qw(RDA::Object Exporter); %MIMES = ( bz2 => 'application/x-bzip2', css => 'text/css', gz => 'application/x-gzip', htm => 'text/html', html => 'text/html', tar => 'application/x-tar', tgz => 'application/x-gzip', txt => 'text/plain', xml => 'application/xml', xz => 'application/x-xz', z => 'application/x-compress', zip => 'application/zip', ); # Define the global private constants ## no critic (Long,Newline) my $BEG = q{ \n}; my $CSS = qq{\n}; my $END = qq{\n}; my $LNK = q{L<[^<>]+>|[^<>]*?>}; my $NOT = q{