Changeset 25598 for lang/perl/Shika
- Timestamp:
- 12/01/08 18:00:31 (4 years ago)
- Files:
-
- 1 modified
-
lang/perl/Shika/trunk/lib/Shika/Util.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Shika/trunk/lib/Shika/Util.pm
r25596 r25598 20 20 $dst = ref $dst if ref $dst; 21 21 22 print "[debug] copy functions $src to $dst\n" if $ENV{SHIKA_DEBUG};22 print "[debug] copy functions $src to $dst\n" if Shika::DEBUG_MODE; 23 23 no strict 'refs'; 24 24 for my $method (@{ Shika::Util::get_functions($src) }) { 25 25 next if $method eq 'has' || $method eq 'requires' || $method eq 'meta' || $method eq 'with'; 26 26 my $dstmethod = $alias->{$method} ? $alias->{$method} : $method; 27 print "[debug] copying method $method\n" if $ENV{SHIKA_DEBUG};27 print "[debug] copying method $method\n" if Shika::DEBUG_MODE; 28 28 if ($dst->can($dstmethod)) { 29 print "[debug] $dst already have $dstmethod. skip\n" if $ENV{SHIKA_DEBUG};29 print "[debug] $dst already have $dstmethod. skip\n" if Shika::DEBUG_MODE; 30 30 next; 31 31 } … … 37 37 my $klass = shift; 38 38 eval "require $klass"; ## no critic ### too bad 39 print "[debug] cannot load class $@" if $ENV{SHIKA_DEBUG}&& $@;39 print "[debug] cannot load class $@" if Shika::DEBUG_MODE && $@; 40 40 } 41 41
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)