Changeset 25675

Show
Ignore:
Timestamp:
12/02/08 14:36:15 (5 weeks ago)
Author:
mattn
Message:

override next()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Path-Class-URI/trunk/lib/Path/Class/Unicode.pm

    r25674 r25675  
    8989} 
    9090 
     91sub next { 
     92    my $self = shift; 
     93    $self->{path}->{dh} = $self->open unless $self->{path}->{dh}; 
     94    my $file = $self->{path}->next; 
     95    $file = Encode::encode($encoding, $file) if $file; 
     96    $file; 
     97} 
     98 
    9199use overload ( 
    92100    q[""] => 'stringify',