Absolutely, here you go, with minor redaction due to some restrictions from my client:
use strict;
use vars qw/..../;
use Archive::Zip qw/:ERROR_CODES/;
use CGI;
use Data::Alias;
use Date::Calc qw/Day_of_Week Decode_Date_US Decode_Month/;
use Date::Extract;
use Digest::SHA qw/sha1_base64/;
use File::Copy;
use GDBM_File;
use HTML::Defang;
use HTML::Entities;
use Image::Size;
use LWP::MediaTypes qw(guess_media_type read_media_types);
use MIME::Entity;
use MIME::Base64;
use Text::Metaphone;
use Time::HiRes qw/time/;
BEGIN {
$|=1;
....
%dispatch=(
'edit' => \&do_edit,
'save' => \&do_save,
'undo' => \&do_undo,
'prior' => \&do_prior,
'next' => \&do_next,
'read' => \&do_read,
....
};
}
$query=new CGI;
%cookie=$query->cookie('app');
%P=();
for $key ($query->param) {
$value=encode_entities($query->param($key),'\x80-\xFF');
$P{$key}=$value;
}
....
HTH,
SSF
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.