- or download this
# Grab the current directory from $0.
BEGIN
...
$0 =~ '(.*[\\\/])\w+\.\w+$';
$curr_dir = $1 || "./";
}
- or download this
my $display = &filter($q->param('display')) || '';
- or download this
sub filter
{
...
$_[0]=~s/\s+$//;
$_[0]=~s/\'/\\\'/g;
$_[0]=~s/<//g;
- or download this
sub filter {
my $str=shift;
...
}
$str;
}