Help for this page

Select Code to Download


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