CGI-Simple
view release on metacpan or search on metacpan
lib/CGI/Simple/Util.pm view on Meta::CPAN
$A2E[219] = 221;
$A2E[221] = 173;
$A2E[249] = 192;
$E2A[74] = 96;
$E2A[95] = 159;
$E2A[106] = 94;
$E2A[121] = 168;
$E2A[161] = 175;
$E2A[173] = 221;
$E2A[176] = 162;
$E2A[186] = 172;
$E2A[187] = 91;
$E2A[188] = 92;
$E2A[192] = 249;
$E2A[208] = 166;
$E2A[221] = 219;
$E2A[224] = 217;
$E2A[251] = 123;
$E2A[253] = 125;
$E2A[255] = 126;
}
elsif ( ord( '^' ) == 176 ) { # as in codepage 037 on os400
$A2E[10] = 37;
$A2E[91] = 186;
$A2E[93] = 187;
$A2E[94] = 176;
$A2E[133] = 21;
$A2E[168] = 189;
$A2E[172] = 95;
$A2E[221] = 173;
$E2A[21] = 133;
$E2A[37] = 10;
$E2A[95] = 172;
$E2A[173] = 221;
$E2A[176] = 94;
$E2A[186] = 91;
$E2A[187] = 93;
$E2A[189] = 168;
}
$self->{'a2e'} = \@A2E;
$self->{'e2a'} = \@E2A;
}
}
}
1;
__END__
=head1 NAME
CGI::Simple::Util - Internal utilities used by CGI::Simple module
=head1 SYNOPSIS
$escaped = escapeHTML('In HTML you need to escape < > " and & chars');
$unescaped = unescapeHTML('<>"&');
$url_encoded = escape($string);
$decoded = unescape($url_encoded);
=head1 DESCRIPTION
CGI::Simple::Util contains essentially non public subroutines used by
CGI::Simple. There are HTML and URL escape and unescape routines that may
be of some use.
An internal object is used to store a number of system specific details to
enable the escape routines to be accurate.
=head1 AUTHOR INFORMATION
Original version copyright 1995-1998, Lincoln D. Stein. All rights reserved.
Originally copyright 2001 Dr James Freeman E<lt>jfreeman@tassie.net.auE<gt>
This release by Andy Armstrong <andy@hexten.net>
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
Address bug reports and comments to: andy@hexten.net
=head1 SEE ALSO
L<CGI::Simple>
=cut
( run in 0.681 second using v1.01-cache-2.11-cpan-75ffa21a3d4 )