Changeset 20824
- Timestamp:
- 10/06/08 06:34:35 (5 years ago)
- Files:
-
- 1 modified
-
lang/perl/misc/kcatch/KCatch.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/misc/kcatch/KCatch.pm
r3474 r20824 25 25 use KCatch qw( [OPTIONS] ); 26 26 27 KCatch.pm would automatically detect whether running under CGI or not, 27 KCatch.pm would automatically detect whether running under CGI or not, 28 28 when no options given. Available options are following: 29 29 … … 60 60 use KCatch qw( jcode=jis ); 61 61 62 Convert the charactor-code-set of the error info mations for Japanese.62 Convert the charactor-code-set of the error informations for Japanese. 63 63 This option make work when "jcode.pl" is already required. 64 64 Or Jcode=* option is also available with "Jcode.pm". … … 180 180 # die "some string." => can detect the line where error occured. 181 181 # 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; 183 183 my $line = $2; 184 184 my $called = [ @$imported ]; … … 272 272 $file =~ s#^.*[/\\]##; # En-short the filename 273 273 chomp $mess; 274 my $eline = sprintf( "[%s:%s:%s] %s\n", 274 my $eline = sprintf( "[%s:%s:%s] %s\n", 275 275 $file, ($line||"?"), $type, $mess ); 276 276 push( @$oarray, $eline );
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)