54 lines
1.3 KiB
Perl
54 lines
1.3 KiB
Perl
# Mandy Wu's Website
|
|
# DataVars.pm: The site-wide constants and variables.
|
|
|
|
# Copyright (c) 2006-2018 imacat.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
# Author: imacat <imacat@mail.imacat.idv.tw>
|
|
# First written: 2006-11-14
|
|
|
|
package Selima::emandy::DataVars;
|
|
use 5.008;
|
|
use strict;
|
|
use warnings;
|
|
use base qw(Exporter);
|
|
use vars qw(@EXPORT %EXPORT_TAGS @EXPORT_OK);
|
|
BEGIN {
|
|
@EXPORT = qw();
|
|
%EXPORT_TAGS = (
|
|
forms => [qw()],
|
|
);
|
|
@EXPORT_OK = qw();
|
|
my %seen;
|
|
%seen = qw();
|
|
foreach my $tag (keys %EXPORT_TAGS) {
|
|
push @EXPORT_OK, grep !$seen{$_}++, @{$EXPORT_TAGS{$tag}};
|
|
}
|
|
$EXPORT_TAGS{"all"} = [@EXPORT_OK];
|
|
# Prototype declaration
|
|
sub clear();
|
|
}
|
|
|
|
use Selima::DataVars qw(:forms);
|
|
|
|
# clear: Clear the data variables
|
|
sub clear() {
|
|
local ($_, %_);
|
|
|
|
|
|
return;
|
|
}
|
|
|
|
return 1;
|