Changeset 11998 for lang/perl/dan
- Timestamp:
- 05/19/08 23:03:25 (5 years ago)
- Location:
- lang/perl/dan/trunk
- Files:
-
- 1 added
- 1 modified
-
lib/dan.pm (modified) (1 diff)
-
t/06_dan_the.t (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/dan/trunk/lib/dan.pm
r3315 r11998 22 22 my $DEFAULT_UTF8HINTBITS; 23 23 my $utf8_hint_bits = 0x00800000; 24 my $is_DanThe; 24 25 25 26 sub import { 26 27 my($class, %opts) = @_; 28 29 if (exists $opts{the} && !$is_DanThe) { 30 eval "package the; sub Dan { shift; return wantarray ? \@_ : \$_[0] } 1;"; 31 $is_DanThe++; 32 return; 33 } 27 34 28 35 if (ref($opts{cat_decode} || '') eq 'CODE' && ! exists $opts{decode}) {
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)