Changeset 20824

Show
Ignore:
Timestamp:
10/06/08 06:34:35 (5 years ago)
Author:
drry
Message:
  • KCatch! KCatch'''
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/misc/kcatch/KCatch.pm

    r3474 r20824  
    2525    use KCatch qw( [OPTIONS] ); 
    2626 
    27 KCatch.pm would automatically detect whether running under CGI or not,  
     27KCatch.pm would automatically detect whether running under CGI or not, 
    2828when no options given. Available options are following: 
    2929 
     
    6060    use KCatch qw( jcode=jis ); 
    6161 
    62 Convert the charactor-code-set of the error infomations for Japanese. 
     62Convert the charactor-code-set of the error informations for Japanese. 
    6363This option make work when "jcode.pl" is already required. 
    6464Or Jcode=* option is also available with "Jcode.pm". 
     
    180180    # die "some string."   => can detect the line where error occured. 
    181181    # die "some string.\n" => cannot detect the line where... 
    182     $estr =~ s/(,)? at \(eval \d+\) line (\d+)(,? <DATA> line (\d+)(\.)?)?/$5||$1/e; 
     182    $estr =~ s/(,)? at \(eval \d+\) line (\d+)(?:,? <DATA> line \d+(\.)?)?/$3||$1/e; 
    183183    my $line = $2; 
    184184    my $called = [ @$imported ]; 
     
    272272        $file =~ s#^.*[/\\]##;                  # En-short the filename 
    273273        chomp $mess; 
    274         my $eline = sprintf( "[%s:%s:%s] %s\n",  
     274        my $eline = sprintf( "[%s:%s:%s] %s\n", 
    275275                    $file, ($line||"?"), $type, $mess ); 
    276276        push( @$oarray, $eline );